One I set a view for NSStatusItem by setView:, how can i remove it later on if I want to? Is t开发者_如何转开发his 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.
精彩评论