• 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: Synchronize menus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: NSTextView Question
  • Next by Date: best way to track down memory leak in screen saver module?
  • Previous by thread: Synchronize menus
  • Next by thread: NSMailDelivery problems
  • Index(es):
    • Date
    • Thread