Question

I'm building a Mac app that has no dock icon, but a status bar icon, so the only way of bringing it is from the status icon.

When the app is active i can bring my NSWindow on screen from the status icon without problems. The problem appears when the app looses focus, at that point the app hides itself. I don't know how to make the app again active when i click the status icon.

Thanks.

Was it helpful?

Solution

Have you tried NSApplication's activateIgnoringOtherApps:?

[NSApp activateIgnoringOtherApps:YES];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top