0

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?

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

3 Comments

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.
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 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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.