Ok I have a status menu application with a Hide menu item.
By clicking on "Hide" calls:
[[NSStatusBar systemStatusBar] removeStatusItem:statusItem]
which of course removes my application from the status bar, even if it still works.
I want my application to be re-added to the system status bar when a user "opens" my application in the "Applications" folder. The problem is that I cannot insert part of the code to do this inside the "ApplicationDidFinishLaunching", because the application is already open. So what should I do?
source
share