Re: NSResponder / acceptsFirstResponder
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