One, I set the view for NSStatusItem using setView: how can I remove it later if I want? Is it possible? Thank.
To remove it, just call:
[[NSStatusBar systemStatusBar] removeStatusItem: myStatusItem]
This works even if you define your status element through setTitle or setImage.
Source: https://habr.com/ru/post/1796357/More articles:Память мудрая, хранит строку в байте дешевле, чем ее эквивалент UTF? - c#JQuery: how to name click functions? - javascriptffmpeg neon assembly on android errors - assembler - assemblyHow to access multiple fields in a JPA request? - javaNew Virtual Machine Role in Visual Studio - azureHow can I get the position of an item in a list when I click on a specific view? - androidWhich algorithm is suitable here? Walking through a series of interconnected nodes spanning them all with minimal repetition - algorithmhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1796360/java-imports-to-jar-file&usg=ALkJrhj5o6yKDe7Of3_nVUn7nc-wXKRg9ARuby: Overloading Indexed Assignment to Instance Attributes - ruby | fooobar.comSymfony Generator, Doctrine, and M: N Forms - phpAll Articles