简体   繁体   English

osx - 我的应用程序在运行时没有出现在 Dock 中。 我怎样才能解决这个问题?

[英]osx - My application doesn't appear in the Dock when running. How can I fix this?

I just picked up the code for an application our overseas developer has made for us.我刚刚拿到了我们海外开发人员为我们制作的应用程序的代码。 For some reason, when the application starts, no icon pops up in the Dock (with the little blue circle below).出于某种原因,当应用程序启动时,Dock 中没有弹出图标(下方有蓝色小圆圈)。

If I manually add the app to the Dock and start it from the Dock, it will run the application, but the icon won't be illuminated with the blue circle (no indication that it is running).如果我手动将应用程序添加到 Dock 并从 Dock 启动它,它将运行应用程序,但图标不会被蓝色圆圈照亮(不表示它正在运行)。

Where would I have to start in order to solve this problem?为了解决这个问题,我必须从哪里开始? (eg to make it clear that the application is running by having an icon in the Dock with the blue circle below it). (例如,通过在 Dock 中有一个图标并在其下方带有蓝色圆圈来明确应用程序正在运行)。

Thanks!谢谢!

Either you are running Mac OS X Lion with the indicator turned off (see Dock settings) or you app is configured as a UI element in the Info.plist file ( LSUIElement is YES ).您在关闭指示器的情况下运行 Mac OS X Lion(请参阅 Dock 设置),或者您的应用程序被配置为 Info.plist 文件中的 UI 元素( LSUIElementYES )。

Set LSUIElement to NO / false in Info.plist.在 Info.plist LSUIElement设置为NO / false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM