Question about menuHasKeyEquivalent:forEvent:target:action:
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