开发者

Removing NSStatusItem view

开发者 https://www.devze.com 2023-02-15 08:39 出处:网络
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:

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

精彩评论

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

关注公众号