Search code examples
objective-cmacoslaunchdlaunch-daemon

Mac OS X daemon using Objective-C - launchd


I'm new in Mac OS X world but I have skills on Windows dev.

I need to develop a daemon (on Windows will be Windows Service) that uploads/downloads files from a Web Service.

My question is: is it possible to create an app written in Objective-C that will be the daemon (to upload/download) and to launch it when the OS starts using launchd? Or there's another way to create a daemon?

Thank you


Solution

  • I don't know if I have understood correctly but I guess you can do it. The next link could be a good start for understand how Daemons work in Objective-C Apple Developer Then here there is a interesting piece of code. It is about GPS but it might be usefull. Also get a look of this github folder.It is a controller for start/stop daemons