How to persist status bar menu item after app closes

Hello:


I have a status bar extra menu Item in my MAC OS app. Currently when I close the app the status bar menu disappears. Is there a way to have the status bar item remain in the same way the MAC items persists regardles of what application is running?

You could have a LaunchAgent (faceless background app that is run when a user logs in) that puts the status item there for you and then communicate with it from your application via XPC.

How to persist status bar menu item after app closes
 
 
Q