Is there a way to make an application hidden from the user for an OS X application ( eg not being on the dock when it's open and only operating in the background). I know there is a way to make things like hidden Python windows but can I do it in swift?
Asked
Active
Viewed 666 times
0
-
Which platform? Mac OS or iOS? I'm guessing Mac from your use of the word "Dock" – Duncan C Aug 17 '15 at 23:17
-
Made edit to the question, OS X is correct – brimstone Aug 17 '15 at 23:19
1 Answers
3
Add a LSUIElement
key to the Info.plist and set its value to 1.

saagarjha
- 2,221
- 1
- 20
- 37
-
-
-
You would need something like a MenuBar item. [Here's](http://www.raywenderlich.com/98178/os-x-tutorial-menus-popovers-menu-bar-apps) a good tutorial for that. (Put the "Quit" action there) – saagarjha Aug 17 '15 at 23:24
-
If there was no menu bar item, would they not be able to terminate the application? – brimstone Aug 17 '15 at 23:25
-
They could from Activity Monitor, but that's kind of complicated for a normal user. – saagarjha Aug 17 '15 at 23:25
-
Another way to interact with such a faceless bg app is to provide a System Preferences control panel. – Thomas Tempelmann Oct 17 '15 at 08:14