开发者

How can you update an NSMenu while it is active (visible)?

开发者 https://www.devze.com 2023-01-02 14:15 出处:网络
I have an NSMenu instance, 开发者_StackOverflowthrough 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

I have an NSMenu instance, 开发者_StackOverflowthrough 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?


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.)

0

精彩评论

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