Mac Service

Discussion in 'Mac Programming' started by sivaprakash, Mar 10, 2011.

  1. sivaprakash macrumors member

    Joined:
    Mar 10, 2011
    Location:
    Chennai, India
    #1
    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.
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    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.
     
  3. sivaprakash thread starter macrumors member

    Joined:
    Mar 10, 2011
    Location:
    Chennai, India
    #3

Share This Page