Reputation: 22930
Which is best way for inter process(from different users) communication in objective c?
Can we use Open MPI in cocoa application?
Upvotes: 3
Views: 894
Reputation: 41821
In addition to spudwaffle's suggestions, the new hotness is XPC (requires Lion). For lightweight notifications, notify_post() is pretty awesome.
Upvotes: 1
Reputation: 2925
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.
Upvotes: 4