LSUIElement 不工作

发布于 2024-08-31 08:37:31 字数 155 浏览 2 评论 0原文

我有一个应用程序,Info.plist 中的 LSUIElement = 1。当我运行该应用程序时,会为其创建一个停靠项和顶级菜单栏。为什么?

编辑:

我正在使用一个调用 TransformProcessType() 的库,破坏了我的 Info.plist 配置。

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:

I was using a library that was calling TransformProcessType(), clobbering my Info.plist configuration.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

↙厌世 2024-09-07 08:37:31

转到 Info.plist 文件,然后添加新的键值对,或键入布尔值。开始输入短语“应用程序是代理”。它应该会自动为您完成。然后选中复选框。

这就是我创建代理应用程序的方式,并且每次都有效!

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!

み青杉依旧 2024-09-07 08:37:31

1 必须是字符串,而不是数字(根据 LSUIElement 的文档)。无论如何都要尝试一下。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文