One I set a view for NSStatusItem by setView:, how can i remove it later on if I want to? Is this even possible? Thanks.
To remove it, just call:
[[NSStatusBar systemStatusBar] removeStatusItem: myStatusItem]
This works even when you define your status item through setTitle or setImage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With