How can I programmatically close a window in cocoa mac ? I have opened a second window/xib from the first window/xib using button click. I need to close the first window/xib pro
I was looking for this for ages! A simple
[self close]; [self release];
worked for me. :-)