Re: NSDocument and Multiple NSWindowControllers
Re: NSDocument and Multiple NSWindowControllers
- Subject: Re: NSDocument and Multiple NSWindowControllers
- From: "R. Scott Thompson" <email@hidden>
- Date: Tue, 5 Oct 2004 14:28:39 -0500
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>
_______________________________________________
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