Cocoa application menu bar not clickable

前端 未结 3 1323

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:34

    I fixed by removing LSUIElement in Info.plist if the app has a Window and Menu Bar.

    The old solution is that we override this config with [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];, but in Catalina, it doesn't work anymore.

提交回复
热议问题