menu action never being called?
menu action never being called?
- Subject: menu action never being called?
- From: "David M. Cotter" <email@hidden>
- Date: Tue, 3 Nov 2009 17:25:06 -0800
i have a menu that lives in the menu bar (top level)
but i also use it in a context menu
when the context menu is about to be shown, i take the menu out of the
menu bar (substituting an empty menu by the same name so the menu bar
doesn't flicker with the menu suddenly missing) and stick it in the
context menu, then pop up the menu.
i've also got a menuAction selector set for all menu items, so i can
handle what happens manually, yes crazy but there's no way to change
it right now.
this procedure works for all *sub* menus from the menu bar, that is,
if the menu is a sub-menu off of a top level menu in the menu bar,
then temporarily relocating it to the context menu works fine, the
menuAction gets called.
however this fails when it is this main menu bar menu.
i traced it somewhere in NSSLMMenuEventHandler, in the normal case it
gets into
[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] but in
the fail case it never gets there.
i am totally at a loss here
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden