Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it
Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it
- Subject: Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it
- From: Ken Thomases <email@hidden>
- Date: Wed, 27 Aug 2014 11:36:07 -0500
On Aug 27, 2014, at 11:23 AM, Jerry Krinock <email@hidden> wrote:
> On 2014 Aug 27, at 09:05, Ken Thomases <email@hidden> wrote:
>
>> And is the view the first responder? Does it return YES from -acceptsFirstResponder?
>
> It doesn’t seem to matter. To answer your question, I put this code into my view controller:
>
> #if ACCEPT
> - (BOOL)acceptsFirstResponder {
> return YES ;
> }
> #endif
I don't think it makes any sense to make the view _controller_ return YES from -acceptsFirstResponder. You have to make your view accept first responder. That's the thing being clicked on. -acceptsFirstResponder is *not* sent up the responder chain to make some other responder the first responder when a view is clicked on.
Regards,
Ken
_______________________________________________
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