Re: Inserting my own Responder before App?
Re: Inserting my own Responder before App?
- Subject: Re: Inserting my own Responder before App?
- From: Ken Thomases <email@hidden>
- Date: Wed, 23 Apr 2008 02:37:50 -0500
On Apr 23, 2008, at 1:44 AM, Rick Mann wrote:
I've got a subclass of NSWindowController (a singleton in my app)
inserted after the NSApplication in the responder chain, but is
there any way for it to be the last responder before the app, such
that Cocoa automatically makes things point first to my responder
and then I can pass things on to the app?
See this:
http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/chapter_2_section_6.html
and also -[NSResponder setNextResponder:].
However, NSWindowController automatically uses that method to add
itself as the next responder after the window it manages. That's
illustrated in the above link. So, I don't think you need to do
anything special.
Cheers,
Ken
_______________________________________________
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