Re: How to hide a window?
Re: How to hide a window?
- Subject: Re: How to hide a window?
- From: Johann Hibschman <email@hidden>
- Date: Thu, 20 Sep 2001 20:28:36 -0700
On Thursday, September 20, 2001, at 11:06 AM, John C. Randolph wrote:
Then when you want the window to appear, send it a
-makeKeyAndOrderFront: message.
This brings up something that I was wondering about. Just how are the
windows in a nib file controlled by default? There seems to be no
obvious NSWindowController lying around that I can get my hands on.
I'm just starting to learn Cocoa, and I feel like I've been reduced to
randomly trying things, which is never a good sign. I have a doc-based
app, with a Console window and several panels that live in the
MainMenu.nib. To control these windows, I explicitly create a
NSWindowController instance for each and use that to open and close them.
This seems all well and good, if a bit clunky, but I'm concerned that
there's still the default NSWindowController lurking somewhere in the
back of the system that also things it's in charge of those windows, and
that that may cause a problem later on.
So, what's the best answer? Just ignore the controller and manipulate
the windows through makeKeyAndOrderFront and so on? Somehow disconnect
the windows from the default controller? I feel like there's something
deep I'm missing about the windowing architecture.
Thanks,
--Johann