Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 554
Parag Bafna Avatar asked May 21 '26 23:05

Parag Bafna


2 Answers

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.

like image 150
spudwaffle Avatar answered May 24 '26 18:05

spudwaffle


In addition to spudwaffle's suggestions, the new hotness is XPC (requires Lion). For lightweight notifications, notify_post() is pretty awesome.

like image 20
Catfish_Man Avatar answered May 24 '26 18:05

Catfish_Man



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!