Re: Synchronize menus
Re: Synchronize menus
- Subject: Re: Synchronize menus
- From: Chris Purcell <email@hidden>
- Date: Sun, 17 Feb 2002 10:20:18 +0000
Hello,
I'd like to synchronize the item selected in a submenu with a popup
button (with same action and same tags). Menu items and popup are
enabled / disabled programmatically.
Could someone point me in the right direction?
Thanks in advance,
Michhle
Can you not just set up a controller object as the target of both menu
and button, altering one in response to a message from the other?
Alternatively, if they are both to have *identical* menus, try setting
the menu of the submenu item to the menu of the button (see
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/
ObjC_classic/Protocols/NSMenuItem.html#//apple_ref/occ/intfm/NSMenuItem/setSubmenu:
) or vice versa.
Kritter
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.