LSUIElement not working

后端 未结 2 1330
野趣味
野趣味 2020-12-09 22:18

I have an application that has LSUIElement = 1 in the Info.plist. When I run the application, a dock item and toplevel menu bar is created for it. Why?

EDIT:

相关标签:
2条回答
  • 2020-12-09 22:28

    The 1 must be a string, not a number (according to the documentation of LSUIElement). Something to try anyway.

    0 讨论(0)
  • 2020-12-09 22:39

    Go to your Info.plist file, and add a new key-value pair, or type Boolean. Start typing in the key the phrase "Application is agent". It should auto-complete for you. Then check the checkbox.

    This is how I create my agent applications, and it works every time!

    0 讨论(0)
提交回复
热议问题