I've got a utility app I'm developing for OS X (hopefully targeting 10.5 and up). My window floats above other windows, and occasionally I want to hide the my app/window and let users continue running whatever program was behind it. Similar to if the user pressed "cmd-H" to hide my app.
The problem is, I don't know how to do this programmatically with cocoa. I can hide my window, but my app's menubar is still frontmost. Things I have tried that did not work:
Please help, thanks!
The problem is, I don't know how to do this programmatically with cocoa. I can hide my window, but my app's menubar is still frontmost. Things I have tried that did not work:
Code:
[NSApp hide:self];
[NSApp deactivate];
Please help, thanks!