views:

45

answers:

1

As explained at this site, I could launch an app from 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?
+2  A: 

Easiest way is to remove the window from the nib/xib file. If you want to additionally not have a dock icon, set the Application is agent (UIElement) key in the info.plist to true

cobbal
@cobbal : Could you elaborate the answer a little bit more? I could open the UIBuilder, and found 'Window' at MainMenu.nib. But, I don't know how to delete it.
prosseek
@cobbal : And, for the 'Application is agent (UIElement) key', I can't find it. Is it just OK to add the key 'Application is agent', and make it true in the info.plist?
prosseek
@prosseek for the first, just select the window and press the delete key. For the seconds, add the key `LSUIElement` and set it to be a boolean True
cobbal
@cobbal : Thanks! it works.
prosseek