Parag Bafna
Parag Bafna

Reputation: 22930

Inter Process (from different users) Communication in objective c

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

Answers (2)

Catfish_Man
Catfish_Man

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

spudwaffle
spudwaffle

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

Related Questions