NSOutlineView vertical text alignment
NSOutlineView vertical text alignment
- Subject: NSOutlineView vertical text alignment
- From: Oftenwrong Soong <email@hidden>
- Date: Wed, 12 Aug 2009 20:25:56 -0700 (PDT)
Hi all,
I have a NSOutlineView. I want to use the "small" text size (by setting Text Field Cell Size to "Small" in Interface Builder).
The disclosure triangle looks proper and is vertically centered in the row.
However the text is too high in the cell. I would like it centered like the disclosure triangle. I do not wish to reduce the row height because that makes the table look too crowded.
I know the triangle can be moved by issuing [cell setImagePosition:NSImageAbove] in the delegate outlineView:willDisplayOutlineCell:forTableColumn:item: as described here:
http://lists.apple.com/archives/Cocoa-dev/2006/Jan/msg02056.html
Is there a similarly easy way to change the vertical alignment of the text?
Thanks,
Soong
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden