• 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: NSResponder / acceptsFirstResponder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSResponder / acceptsFirstResponder


  • Subject: Re: NSResponder / acceptsFirstResponder
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 12 Mar 2010 22:44:12 -0800

On Fri, Mar 12, 2010 at 10:17 AM, David Blanton <email@hidden> wrote:
> How does one get a views acceptFirstResponder method called without having
> to click on the view?

-acceptsFirstResponder should just return YES or NO based on the
current state. Are you referring to -becomeFirstResponder? -[NSWindow
makeFirstResponder:] calls that; you shouldn't call it yourself.

What are you trying to do?

> If a class subclasses NSResponder so it can get events how does one get an
> instance of this class in the responder chain?

Use -setNextResponder:. More info here:
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html#//apple_ref/doc/uid/10000060i-CH3-SW2

--Kyle Sluder
_______________________________________________

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

References: 
 >NSResponder / acceptsFirstResponder (From: David Blanton <email@hidden>)

  • Prev by Date: Which iPhone Program?
  • Next by Date: Re: Problem with "save as" and freed managed object context
  • Previous by thread: NSResponder / acceptsFirstResponder
  • Next by thread: Re: NSResponder / acceptsFirstResponder
  • Index(es):
    • Date
    • Thread