Custom NSPopUpButton and Cell
Custom NSPopUpButton and Cell
- Subject: Custom NSPopUpButton and Cell
- From: Philip Dow <email@hidden>
- Date: Sat, 10 Dec 2005 20:28:50 +0100
Hiya,
I've managed to subclass a popup button and cell to display a custom
look, similar to the "More Info..." button in the finder but for a
popup button. I am overriding drawInteriorWithFrame:inView: to do my
drawing, which handles the work just fine. However, I am unable to
get a menu when I click on the button.
When I click, instead of the full menu set in IB, I end up with a
single item menu which contains the item currently selected by the
popup button. Am I missing a method somewhere that I need to override
or call from my drawing code? The button is already set to flip, and
I have tried [[self cell] setMenu:[self menu]]; in the button's
awakeFromNib method, as recommended on cocoadev, but to no avail.
_______________________________________________
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