One can set a NSStatusItem's
behaviour
property to removalAllowed
(NSStatusItemBehaviorRemovalAllowed
)
Then a user can remove the item from the status bar using drag and drop.
Example: removing the WiFi status item from the status bar
However, I am unable to detect when the statusbar is being removed so I can remember it and not show it the next time the user starts the app. There is no delegate or notification and the statusBar
property is readonly so I can't override the setter.
Any idea? :)