Re: NSTableView RowHeight and font vertical alignment
Re: NSTableView RowHeight and font vertical alignment
- Subject: Re: NSTableView RowHeight and font vertical alignment
- From: Frank Midgley <email@hidden>
- Date: Mon, 15 Nov 2004 18:41:36 -0600
On Nov 15, 2004, at 3:44PM, Byron Wright wrote:
I currently have a tableview that has a row height of 40. The text
being displayed in my rows is always vertically aligned to the top of
the row. Is there a constant I can use to vertically align the text in
my rows to the middle? I can't seem to find a way to do this with the
NSTableView.
I don't believe AppKit currently supports this. The easiest way to do
this would be to make an NSCell subclass and override
-drawInteriorWithFrame:inView: to draw the string vertically centered.
Then tell each column in the table to use your subclass for its
dataCell.
-Frank
------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/
_______________________________________________
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