Re: Inserting my own Responder before App?
Re: Inserting my own Responder before App?
- Subject: Re: Inserting my own Responder before App?
- From: Cathy Shive <email@hidden>
- Date: Wed, 23 Apr 2008 10:06:14 +0200
Does your window know about the window controller and vice-versa?
It's not clear how you're setting this up from your post, but you
might need to tell the window about your window controller subclass:
[window setWindowController:windowController];
Or the other way around?
[windowController setWindow:window];
Or using brute force, the window controller can add itself to the
responder chain after the window like this:
[window setNextResponder:self];
If they know about each other, it shouldn't be necessary to
explicitly set the window's next responder, though.
Best,
Cathy
On Apr 23, 2008, at 9:46 AM, Rick Mann wrote:
On Apr 23, 2008, at 12:37 AM, Ken Thomases wrote:
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.
I did all that; that's not really what I want.
My NSWindowController subclass is not automatically hooked up (I
tried). I am able to use the setNextResponder et al. to put it
*after* the app, but I can't figure out how to set it up so it'll
be *before* the app.
What I have works, but kinda bugs me, because the app is "more
final" than my controller.
--
Rick
_______________________________________________
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
_______________________________________________
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