Weahah has the right idea, although I will try to expand it a little.
If you try to add this line to your method initWithWindowNibName::
NSLog(@"window == %@", [self window]);
, :
window == (null)
, nil, init* , IBOutlet "".
nil : . , , [nil doSomething];
, IBOutlet . Wevah, , , -
- (void)awakeFromNib;
NSWindowController, :
- (void)windowDidLoad;
, ...