How to close a window (unload a NIB)?

Posted by Paperflyer on Stack Overflow See other posts from Stack Overflow or by Paperflyer
Published on 2010-04-15T19:55:15Z Indexed on 2010/04/15 20:13 UTC
Read the original article Hit count: 355

I have a custom NSWindowController subclass that loads a NIB file during initialization like this:

self = [super initWithNibNamed:@"myNib"];
if (self != nil) {
    [self window];
}

The nib contains some custom views and some other controls. The NSWindowController is the file's owner and at least one of the views even binds to it.

Simply, what do I have to do to close and release that window? I spend the whole day trying to figure that out and I am still clueless. Please help me.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about nswindowcontroller