• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with distributed objects in GUI cocoa apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Problem with distributed objects in GUI cocoa apps
      • From: Gerd Knops <email@hidden>
References: 
 >Problem with distributed objects in GUI cocoa apps (From: Costas Chatzinikolas <email@hidden>)
 >Re: Problem with distributed objects in GUI cocoa apps (From: Charles Srstka <email@hidden>)
 >Re: Problem with distributed objects in GUI cocoa apps (From: Costas Chatzinikolas <email@hidden>)
 >Re: Problem with distributed objects in GUI cocoa apps (From: Jens Alfke <email@hidden>)
 >Re: Problem with distributed objects in GUI cocoa apps (From: Costas Chatzinikolas <email@hidden>)

  • Prev by Date: Re: JSONSerialization 'Garbage at end' error
  • Next by Date: Re: JSONSerialization 'Garbage at end' error
  • Previous by thread: Re: Problem with distributed objects in GUI cocoa apps
  • Next by thread: Re: Problem with distributed objects in GUI cocoa apps
  • Index(es):
    • Date
    • Thread