Re: Problem with distributed objects in GUI cocoa apps
Re: Problem with distributed objects in GUI cocoa apps
- Subject: Re: Problem with distributed objects in GUI cocoa apps
- From: Jens Alfke <email@hidden>
- Date: Wed, 30 Apr 2014 12:39:21 -0700
On Apr 30, 2014, at 11:19 AM, Costas Chatzinikolas <email@hidden> wrote:
> So if i want to create two apps (one for Mac OS X - one for iOS) that speak to each other,
> i have to use sockets. Am i correct?
Yes. DO between computers (over TCP) was never really supported on OS X, and has a number of security and reliability problems that would make it a really bad idea for any real-world use. (I know, because I tried to do that once.) And AFAIK, XPC is purely intra-computer.
(Frankly, _any_ API for networked communication that tries to make network calls look just like regular function calls is a bad idea. Distributed and local computing are very, very different, and papering over the differences will lead the client code straight into the well-known fallacies of distributed computing*.)
I have a framework called MYNetwork** that provides a fairly clean high-level API for letting two apps talk to each other. People have been using WebSockets lately too, but to my knowledge there aren’t any really good WebSocket client and server libraries for Cocoa yet.
—Jens
* http://en.wikipedia.org/wiki/Fallacies_of_Distributed_Computing
** https://github.com/snej/mynetwork
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden