Cocoa application menu bar not clickable

前端 未结 3 1322

I\'m building a menu bar in my cocoa application with the following code in the @implementation of my custom application CustomApplication:

<         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-09 13:12

    I had this issue and the reason was because my call to [NSApp activateIgnoringOtherApps:YES] was in applicationWillFinishLaunching: instead of applicationDidFinishLaunching:.

    As soon as I moved it, the menubar worked on first-launch.

提交回复
热议问题