Bindings for dynamically populated menu
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