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:31:21 +0000
On Fri, Mar 28, 2008 at 1:14 AM, John Stiles <email@hidden> wrote:
> The view doesn't immediately have a way of knowing whether it should handle
> a key like "space" or not. The app design is predicated around the idea that
> keyboard shortcuts will be consumed before they reach the view, which I
> think is reasonable, and matches reality for standard command keys.
I'm not sure you can make this assumption. In order to be a good
responder chain citizen, your view really needs to know whether it
should handle a given event (it may of course need to ask its own
delegates whether they wish to handle the event before it can answer
this). However, it's not at all clear to me why your custom view
should get a go at the space bar before your menu, so perhaps someone
else knows how to fix this.
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