NSTableView, variable row heights, small fonts
NSTableView, variable row heights, small fonts
- Subject: NSTableView, variable row heights, small fonts
- From: Ken Victor <email@hidden>
- Date: Wed, 19 Oct 2005 15:58:27 -0700
i've got an NSTableView that has a single column and each row is an
NSAttributedString. in my data source for the table i return the
height returned by [NSAttributedString size] as the height for each
row. the problem is that if my strings are small font sizes (less
than 13), the table appears to clip the bottom of the characters.
if it matters, the table is inside a tab view that is inside a sheet
attached to an application window (preferences) in my document based
app.
i can avoid the clipping by setting the height for intercell spacing
larger, but i'd rather not do this as i'd prefer the view to be
wysiwyg as it is for the headers and footers for printed reports. and
i haven't figured out what algorithym to use to figure out what size
intercell spacing to use.
also, the amount of clipping seems to vary somewhat depending on
which font is in use.
i'm not sure what i should be doing differently or where to look for
a bug in my code. can anyone offer me any advice? or tell me if
perhaps this is a known problem with NSTableView.
thanx,
ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden