• 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: Jerry Krinock <email@hidden>
  • Date: Wed, 27 Aug 2014 09:46:05 -0700

> On 2014 Aug 27, at 09:36, Ken Thomases <email@hidden> wrote:
>
> 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.

Sorry, Ken, I mis-read your question.  The answer is that the *view* is not accepting first responder…

-(void)mouseDown:(NSEvent *)event {
    NSLog(@">> %s", __PRETTY_FUNCTION__) ;
    NSLog(@"acceptsFirstResponder = %hhd", [[self view] acceptsFirstResponder]) ;
}

logs that acceptsFirstResponder = 0.

I shall read up on what you said.


_______________________________________________

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>
References: 
 >Implemented -keyDown: in Yosemite NSViewController, but no class gets it (From: Jerry Krinock <email@hidden>)
 >Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it (From: Michael Babin <email@hidden>)
 >Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it (From: Ken Thomases <email@hidden>)
 >Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it (From: Jerry Krinock <email@hidden>)
 >Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Prompting user (NSAlert) during document reading
  • Next by Date: Re: What exactly does NSDocumentController do when there's no NSDocument architecture?
  • Previous by thread: Re: Implemented -keyDown: in Yosemite NSViewController, but no class gets it
  • Next by thread: Re: Implemented -keyDown: in Yosemite NSViewController
  • Index(es):
    • Date
    • Thread