Menu bar to not activate app

236 Views Asked by At

I'm trying to work out how my Mac app when running can have it's cute little icon sitting in the dock in the background and then the user can click on the icon in the menu bar and trigger the menu without activating my app into the foreground? Any ideas?

1

There are 1 best solutions below

2
On

Hi and welcome to Stackoverflow!

I tried to do exactly the same thing a while ago and fount this tutorial very helpful. It shows just great how to make a status bar application.

I don't know if you want to hide the icon in the dock as well. If you do, take a look at the bottom of the page. You have to set the key LSUIElement in the info.plist to 1 (or true).

I hope this helps you out!