• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding Custom Menu Items to NSPopUpButtonCell with Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: silly question about build/release
  • Next by Date: Re: safe and efficient way tp duplicate NSMutable array
  • Previous by thread: Moderator: EOT [Re: Custom document icons]
  • Next by thread: Smaller Button in NSTextFieldCell
  • Index(es):
    • Date
    • Thread