Adding Custom Menu Items to NSPopUpButtonCell with Bindings
Adding Custom Menu Items to NSPopUpButtonCell with Bindings
- Subject: Adding Custom Menu Items to NSPopUpButtonCell with Bindings
- From: Mike Rossetti <email@hidden>
- Date: Tue, 17 Apr 2007 17:32:41 -0600
I would be so grateful if someone could point me to an example of how
to add custom menu items to an NSPopUpButtonCell that uses bindings.
To be clear, I've got a cell in a table that is bound to an array
controller that provides all of the pre-existing selections (let's
say I'm listing my pets). What I want to do is add a separator and a
'Add new pet...' menu item to the bottom of the popup before it is
presented to the user, and be able to associate an action to add a
pet when that menu item is selected. It would look like:
Boots
Eva
Randy
Spot
-------
Add new pet...
I am not using CoreData, just Cocoa Bindings.
Thanks,
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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