Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sivaprakash

macrumors member
Original poster
Mar 10, 2011
52
0
Chennai, India
I want to write Cocoa (Objective-C) based Service (equivalent to Windows Service - which has to keep running in background and stat itself when the machine boors up( and deploy into the machine. For example, Image Processing Service, this service has to be installed into the system and my client application (Objective-C) will contact them to give request (Asynchronous Calls). Then the service can process the request and post the response back to the client.
 
I want to write Cocoa (Objective-C) based Service (equivalent to Windows Service - which has to keep running in background and stat itself when the machine boors up( and deploy into the machine. For example, Image Processing Service, this service has to be installed into the system and my client application (Objective-C) will contact them to give request (Asynchronous Calls). Then the service can process the request and post the response back to the client.

That is called a daemon in the Mac OS X / UNIX world. You'll find plenty of articles on how to write one with a simple search for something like "POSIX daemon tutorial".

Oh make sure you use Launchd to handle startup and shutdown of your process though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.