On Dec 10, 2008, at 9:09 AM, Arun wrote:
Hi
I have an App in which i use NSOutlineView in the left hand side for
Navigational controls.
The Root and child's have text cells. I am have changed the font
size for
the texts in the text cells.
After this the text in the cells are not aligned. The leave a lot of
space
in the bottom and looks as if they were moved up.
This also happens in the NSTableView.
Is there any way in which i can allign the text to the center of the
cells
so that the text exactly reside in the center and leaves equal
spaces w.r.t
the text cell height.
Yes -- subclass the cell, and center the text before drawing it. You
can override -drawInteriorWithFrame, adjust the frame so the text will
be centered, and call super.
corbin
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]