본문 바로가기

개발관련/Mac

NSWindow programatically show & hide

// show

[window makeKeyAndOrderFront:self];
[NSApp activateIgnoringOtherApps:YES];

// hide

[window orderOut:self]