views:

57

answers:

3

Specifically, I want to create a new NSWindow in IB in MainMenu.xib, but I don't want that to be open when the application launches. I tried doing close: and orderOut: in both the init and awakeFromNib methods of my NSWindowController class, but it flickers for a second before closing.

+4  A: 

Open Window Attributes in IB and uncheck "Visible at launch"

vaddieg
Damn, I thought I had tried that, whereby thought I mean I definitely looked at it and checked it, possibly more than once. Maybe I had something else going on at the time.
zekel
+1  A: 

Just uncheck the "Visible at launch" option.

Chuck
Why are there so many douchebags on SO these days? If you're going to downvote, leave a comment. If you don't have a good comment to leave, you don't have a good reason for downvoting.
Chuck
Wasn't me, but maybe because you didn't specify where to find the option.Or maybe someone's just being a douchebag.
Dewayne Christensen
+5  A: 

That's controlled by the "Visible at launch time" checkbox in the window inspector in interface builder.

See: The Nib Object Life Cycle.

Seth