• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to hide a window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to hide a window?
      • From: "Erik M. Buck" <email@hidden>
References: 
 >Re: How to hide a window? (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: Forcing a pre-render/cache of a view
  • Next by Date: Re: How to hide a window?
  • Previous by thread: Re: How to hide a window?
  • Next by thread: Re: How to hide a window?
  • Index(es):
    • Date
    • Thread