menus and key equivalents
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.