Re: NSDocument and Multiple NSWindowControllers
Re: NSDocument and Multiple NSWindowControllers
- Subject: Re: NSDocument and Multiple NSWindowControllers
- From: "Louis C. Sacha" <email@hidden>
- Date: Wed, 6 Oct 2004 03:46:22 -0700
Hello...
The responder chain is described here:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/BasicEventHandling/Concepts/AboutRespChain.html>
And the interaction with an NSDocument subclass in a document based
app is described (briefly) here:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Concepts/WhatIsADocument.html>
"(When going up the responder chain, the Application Kit queries a
window's NSDocument, if it exists, just after it queries the window
delegate, if that is different from the NSDocument.)"
So as long as one of the three windows for the document is currently
the key or main window, your action methods in the document will be
called.
Hope that helps,
Louis
I'm not a 100% about how the responder chain will work in this
situation. Will my NSDocument get the message if none of the
windows respond to it (which I wouldn't want to do because I would
have to implement the same code in each of the windows)? How/where
would be the best place to implement the "hide/show" method?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden