• 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
menu action never being called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: menu action never being called?
      • From: Graham Cox <email@hidden>
    • Re: menu action never being called?
      • From: Kiel Gillard <email@hidden>
  • Prev by Date: Re: Re: UIView animation docs question
  • Next by Date: Re: menu action never being called?
  • Previous by thread: Re: UIView animation docs question
  • Next by thread: Re: menu action never being called?
  • Index(es):
    • Date
    • Thread