Re: Talking to other apps - again
Re: Talking to other apps - again
- Subject: Re: Talking to other apps - again
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 06 Aug 2014 22:43:11 +0700
On 6 Aug 2014, at 22:05, Alex Zavatone <email@hidden> wrote:
> By the way, if you do want to check out XPC, there is a good tutorial on objc.io here:
>
> http://www.objc.io/issue-14/xpc.html
Very interesting. Thanks for the link!
A quote:
"Let’s say we have two apps, and we would like them to be able to communicate with each other over XPC. Each app doesn’t know what the other app is. But they both know about a (shared) launch agent.
Both apps can connect to the launch agent. App A creates a so-called anonymous listener that it listens on, and sends a so-called endpoint to that anonymous listener over XPC to the launch agent. App B then retrieves that endpoint over XPC from the launch agent. At this point, App B can connect directly to the anonymous listener, i.e. App A."
So XPC can be used for two apps to talk after all. It only is rather more complicated than I thought.
Kind regards,
Gerriet.
_______________________________________________
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