Showing and hiding an NSWindow programatically
// Show
[myWindow makeKeyAndOrderFront:self];
[NSApp activateIgnoringOtherApps:YES];
// Hide
[myWindow orderOut:self];
// Show
[myWindow makeKeyAndOrderFront:self];
[NSApp activateIgnoringOtherApps:YES];
// Hide
[myWindow orderOut:self];
Open Info.plist and add the following:
NSUIElement=1