Re: Subverting the first responder chain
Re: Subverting the first responder chain
- Subject: Re: Subverting the first responder chain
- From: "Hamish Allan" <email@hidden>
- Date: Fri, 28 Mar 2008 01:09:11 +0000
On Fri, Mar 28, 2008 at 12:52 AM, John Stiles <email@hidden> wrote:
> However, I have a few menu items which respond to atypical hotkeys (e.g.
> one responds to "space", another to "option+X"). In this case, I've
> found that the view gets a -keyDown: event, which it dutifully handles,
Perhaps the right way to look at it from the custom view's perspective
is not "should this be handled by the menu?" but "should this be
handled by me?"
If the answer to the latter question is "no", you should call "[super
keyDown:]". If the answer is "yes", you have an ambiguity in your
keyboard shortcuts.
Hamish
_______________________________________________
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