简体   繁体   English

启动Mac OS X中没有主窗口的应用程序

[英]Launch an app that doesn't have main window in Mac OS X

As explained at this site , I could launch an app from Safari. 本网站所述 ,我可以从Safari启动一个应用程序。

I need to open an app that does some work behind the curtain, so I want an app that doesn't have a main window. 我需要打开一个可以在幕后进行一些工作的应用程序,因此我想要一个没有主窗口的应用程序。

  • Q : How can I make an app that doesn't have a main window or that doesn't show any window? 问:如何制作没有主窗口或不显示任何窗口的应用程序?

Easiest way is to remove the window from the nib/xib file. 最简单的方法是从nib / xib文件中删除窗口。 If you want to additionally not have a dock icon, set the Application is agent (UIElement) key in the info.plist to true 如果您还希望没有停靠图标,请将info.plist中的Application is agent (UIElement)键设置为true

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

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