On 03/08/2009, at 7:22 PM, Alexander Bokovikov wrote:
It's my first attempt to assign a popup menu to a view, so perhaps
my question is stupid, but I can't find an explanation in the
Apple's docs... The "Key Equiv." field is grayed, and don't see any
obvious solution to activate it. I've created a menu, associated it
with a view, associated a menu item with action, but this field is
still gray.
Where is the problem?
Contextual (Pop-Up) Menus usually can't have keyboard equivalents
unless they are merely duplicating main menu functionality. Even if
you managed to assign a key equivalent, it isn't automatically handled
- you'd have to write code to support it and it's really complicated,
because the point of contextual menus is that they have a context (the
click location) which activating them from the keyboard doesn't provide.
Give up - you basically can't do it.
--Graham
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com