Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a background-running Cocoa application?

How do I create a Cocoa app that runs in the background (not in the dock, and not in the menu bar either; just in the background).

Does the app need admin privileges? I hope not. Actually it shouldn't, because it's enough that the app runs in the background for that user only, i.e. not for all users.

And I guess I can make it "launch when log-in" by just adding it to the user's Account Preferences, so that shouldn't be a problem.

like image 563
Enchilada Avatar asked Jul 02 '10 13:07

Enchilada


1 Answers

In your Info.plist set LSBackgroundOnly to 1.

like image 140
RyanWilcox Avatar answered Sep 30 '22 06:09

RyanWilcox