A NSStatusItem application,and set NSStatusItem’s view as myView
[statusItem setView:myView];
so myView can be showed in the status bar, I can toggle a popover by clicking myView .
I want to hide the popover when I click the other application, what means , how to get the event when my application is not active.
In you application delegate you just have to add the following method:
It will be called immediately before your application is about to deactivated.