• 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
Bindings for dynamically populated menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings for dynamically populated menu


  • Subject: Bindings for dynamically populated menu
  • From: Jonathan Taylor <email@hidden>
  • Date: Mon, 07 Apr 2014 11:18:24 +0100

This must be a very basic question, but I am evidently having difficulty finding the right search terms. Can anyone point me to some sample code that will show how to implement a menu whose items are populated at runtime? I would have expected to be able to bind a menu object to an NSArray consisting of a series of menu item titles, but IB doesn't seem to offer any suitable binding names. Is there a way of doing that, or if not can anybody point me to some sample code that will show me what methods I need to override in my own subclass of NSMenu (if that's what I need to do). The menu will contain the names of however many suitable devices are connected to the machine at the time.

Thanks in advance
Jonny
_______________________________________________

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


  • Prev by Date: Accessing self in a C static function within an implementation definition
  • Next by Date: Re: Bindings for dynamically populated menu
  • Previous by thread: Re: Accessing self in a C static function within an implementation definition
  • Next by thread: Re: Bindings for dynamically populated menu
  • Index(es):
    • Date
    • Thread