My solution to this problem was to subclass NSWindow
and overwrite the following methods:
- (void)performClose:(id)sender{
[self orderOut:nil];
}
- (void)close{
[self orderOut:nil];
}
Now the NSWindow
is hidden / ordered out and you just have to order it back in when displaying it.