开发者

Removing NSStatusItem view

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜