• 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
Question about menuHasKeyEquivalent:forEvent:target:action:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about menuHasKeyEquivalent:forEvent:target:action:


  • Subject: Question about menuHasKeyEquivalent:forEvent:target:action:
  • From: Steve Mills <email@hidden>
  • Date: Mon, 07 Oct 2013 14:33:31 -0500

Why is it that if I use the menu delegate method menuHasKeyEquivalent:forEvent:target:action: to search for a key equiv in one of our submenus, the action method gets called with the menu as the sender instead of the menu item? I see now way to say "use this menu item as the sender when you send the action to the target".

To work around this, I am simply returning NO from menuHasKeyEquivalent and calling performActionForItemAtIndex: from it. Is that a valid workaround?

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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: Question about menuHasKeyEquivalent:forEvent:target:action:
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: ARC and NSError output parameters: proper declaration?
  • Next by Date: Re: Question about menuHasKeyEquivalent:forEvent:target:action:
  • Previous by thread: Re: ARC and NSError output parameters: proper declaration?
  • Next by thread: Re: Question about menuHasKeyEquivalent:forEvent:target:action:
  • Index(es):
    • Date
    • Thread