How can you update an NSMenu while it is active (visible)?
-
24-10-2019 - |
Pergunta
I have an NSMenu
instance, through which all communication with the Cocoa app will take place. If the menu is open, the background doesn't run, so how can I force an update while the menu is still active?
Solução
See Force NSMenu (nested submenu) update for Main Menu of Cocoa App and run that method in the background. (Don't forget to create an NSAutoreleasePool
.)
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow