• 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
Re: Populating a submenu via bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Populating a submenu via bindings?


  • Subject: Re: Populating a submenu via bindings?
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 2 Oct 2009 21:30:39 -0700


On 2009 Oct 02, at 18:22, Rick Mann wrote:

I'd like to populate the contents of a sub menu on an item of a menu in my menu bar, using bindings. But I don't see an obvious way to do this. Even if I could, I don't know how to invoke an action in my code and know which object in the submenu was selected.

Is this even possible?

It may be possible to do this with bindings, but you'll pull out much less hair if you implement menuNeedsUpdate: instead. I don't even try to bind simple things like targets and titles any more. When it comes to menus, my advice is to forget bindings and do it the old-fashioned way because it is much easier.


Remember to make whatever object is implementing menuNeedsUpdate: the delegate of your menus.

_______________________________________________

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


References: 
 >Populating a submenu via bindings? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: CoreData async fetch request
  • Next by Date: NSValueTransformer Loop
  • Previous by thread: Populating a submenu via bindings?
  • Next by thread: NSValueTransformer Loop
  • Index(es):
    • Date
    • Thread