• 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
menus and key equivalents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

menus and key equivalents


  • Subject: menus and key equivalents
  • From: Jonathan Sand <email@hidden>
  • Date: Wed, 10 Mar 2004 11:43:20 -0800

One of my application's windows has an NSMenu which pops up when you hold down the control key and click the mouse (or when you click on the right mouse button, if your mouse has one). As long as this menu has appeared at least once, all of the key equivalents become "activated," ie, when you press the command key and the key equivalent, the action associated with the menu item is performed.

The problem I'm trying to solve is that I'd like these key equivalents to be activated whether or not the menu has appeared. I've looked high and low for some programatic mechanism for "activating" the key equivalents, to no avail. Neither calling update nor calling performActionForItemAtIndex: on the menu object have the affect I seek.

Anybody encountered this behavior and found a solution?

email@hidden
_______________________________________________
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.


  • Follow-Ups:
    • Re: menus and key equivalents
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: Cron / Scheduling
  • Next by Date: Forcing NSController to commit edits
  • Previous by thread: NSWindowController:shouldCloseDocument
  • Next by thread: Re: menus and key equivalents
  • Index(es):
    • Date
    • Thread