I’m developing a Mac Application in which i need to implement IPC Mechanism. The Scenario is this :
My Application contains two executables, one is Native Mac App(NSStatusItem app) and other is a terminal app coded on CPP. I want to establish IPC Communication between these two processes. I want to be able to send and recieve messages both from CPP to Objective C and vice versa.
Which IPC Mechanism would better suit this ?
Also this wiki(http://en.wikipedia.org/wiki/Inter-process_communication#Main_IPC_methods) Shows, IPC Named Pipes are supported in POSIX and Windows. I wanted to clarify that if i’m using Named Pipes(i know its unidirectional), is it supported in Mac and Objective C ..?
[P.S : If Possible, Please provide example code or links to IPC in C++ & Objective C).
Unix domain sockets are Great for this. http://www.cs.cf.ac.uk/Dave/C/node28.html