Which is best way for inter process(from different users) communication in objective c?
Can we use Open MPI in cocoa application?
The "best" method for inter-process communication in Cocoa is the one most suitable for your needs.
If you just need to send simple notifications, check out NSDistributedNotifcationCenter.
If you need to send more data, check out NSConnection or NSPipe.
OpenMPI also seems like a good choice, see this thread about using it with Xcode.
If you have any questions, feel free to comment.
In addition to spudwaffle's suggestions, the new hotness is XPC (requires Lion). For lightweight notifications, notify_post() is pretty awesome.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With