[launchd-dev] The MachService key

Thomas Clement tclementdev at gmail.com
Tue Nov 22 02:27:47 PST 2011


On Nov 22, 2011, at 11:02 AM, Quinn The Eskimo! wrote:

> On 22 Nov 2011, at 01:28, Jerry Krinock wrote:
> 
>> Does anyone know a book or other resource where I could learn about Mach services?
> 
> Prior to the introduction of XPC in Mac OS X 10.7, registering a Mach service required that you do your IPC using Mach messaging.  Mach messaging is /extremely/ tricky to get right, and I highly recommend that you avoid it.

Actually there are also high level APIs that can be used to do that prior to Mac OS X 10.7: NSMachPort / CFMachPort or CFMessagePort can be used to do IPC through the advertised mach service.

Works well.


Thomas



More information about the launchd-dev mailing list