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: Michael Babin <email@hidden>
- Date: Wed, 27 Aug 2014 08:56:03 -0500
On Aug 26, 2014, at 9:10 PM, Jerry Krinock <email@hidden> wrote:
> I was so excited after watching WWDC Session 212 "Storyboards and Controllers on OS X” that I rewrote a little app I was working on to require Yosemite. All of the new view controller and tab view controller magic works as advertised, except that my view controller subclass, supposedly now in the responder chain, is not getting -keyDown:.
>
> • Apparently, no one is getting -keyDown:, because when I type a key I get a system alert sound.
> • Several lines of code up, this same class gets -mouseDown: OK.
> • This view controller’s view is in a tab view. (Although I don’t think it’s supposed to, the associated NSTabViewController is not getting -keyDown: either.)
>
> Any guesses what might be going on?
Is the window which contains your view (and view controller) the key window?
_______________________________________________
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