Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
setView: で NSStatusItem のビューを設定しましたが、必要に応じて後で削除するにはどうすればよいですか? これは可能ですか?ありがとう。
それを削除するには、次のように呼び出します。
[[NSStatusBar systemStatusBar] removeStatusItem: myStatusItem]
これは、setTitle または setImage でステータス アイテムを定義した場合でも機能します。