• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Implemented -keyDown: in Yosemite NSViewController
      • From: Jerry Krinock <email@hidden>
    • Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it
      • From: Ken Thomases <email@hidden>
References: 
 >Implemented -keyDown: in Yosemite NSViewController, but no class gets it (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: WebView shorting me on print jobs.
  • Next by Date: Prompting user (NSAlert) during document reading
  • Previous by thread: Implemented -keyDown: in Yosemite NSViewController, but no class gets it
  • Next by thread: Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it
  • Index(es):
    • Date
    • Thread