FROM : R. Scott Thompson
DATE : Tue Oct 05 21:28:39 2004
> In my application, I have an NSDocument that controls three
> NSWindowControllers. Everything is set up and working fine. Now, I
> want to add a menu item (say, under view or perhaps window) that will
> allow the user to hide/show two of the windows. The design could be
> thought of as one "main window" (that won't be shown/hidden) and two
> auxiliary views. However, the two views are complex enough to deserve
> their own controller class. They also have their own nibs.
>
> 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?
>
> Thanks in advance.
I have a similar situation and I've attached the methods that are
common to all the windows to the document. It seems to work just fine.
Scot
--
Macintosh Software Engineering Consulting Services
Visit my resume at <http://homepage.mac.com/easco/RSTResume.html>
DATE : Tue Oct 05 21:28:39 2004
> In my application, I have an NSDocument that controls three
> NSWindowControllers. Everything is set up and working fine. Now, I
> want to add a menu item (say, under view or perhaps window) that will
> allow the user to hide/show two of the windows. The design could be
> thought of as one "main window" (that won't be shown/hidden) and two
> auxiliary views. However, the two views are complex enough to deserve
> their own controller class. They also have their own nibs.
>
> 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?
>
> Thanks in advance.
I have a similar situation and I've attached the methods that are
common to all the windows to the document. It seems to work just fine.
Scot
--
Macintosh Software Engineering Consulting Services
Visit my resume at <http://homepage.mac.com/easco/RSTResume.html>
| Related mails | Author | Date |
|---|---|---|
| Robbie Haertel | Oct 5, 21:12 | |
| R. Scott Thompson | Oct 5, 21:28 | |
| Louis C. Sacha | Oct 6, 12:46 |






Cocoa mail archive

