NSPopUpButton - aligning to top vertically
NSPopUpButton - aligning to top vertically
- Subject: NSPopUpButton - aligning to top vertically
- From: Keith Blount <email@hidden>
- Date: Tue, 28 Feb 2006 15:03:41 -0800 (PST)
Hi,
NSPopUpButton aligns its text and image, by default,
to the centre of its cell. Is there any easy way to
change this so that it is aligned to the text? I have
an outline view in which variable row heights are
allowed (using Tiger's -outlineView:heightOfRowByItem:
delegate method), and it looks very ugly with the
popup buttons aligned to the centre when text is
aligned to the top.
I am guessing that I will need to subclass
NSPopUpButtonCell to achieve this (in particular,
-drawWithFrame:inControlView:), but so far my attempts
have been very limited in their success.
Has anybody do something similar, or know how to do
this?
Many thanks in advance for any suggestions.
All the best,
Keith
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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