> On 6 Aug 2014, at 1:06 pm, Gerriet M. Denkmann <[email protected]> wrote:
> 
> Step 1: Use XPC.
> 
> Is there some other way to make this work? Or should I just forget about XPC?
> 

I’d forget about XPC, it’s not for sending data between two primary apps, it’s 
for offloading tasks to helper apps. 

> NSXPCListener can get an NSXPCListenerEndpoint, which is "an endpoint object 
> that may be sent over an existing connection."
> And NSXPCConnection has initWithListenerEndpoint: which "Initializes an 
> NSXPCConnection object to connect to an NSXPCListener object in another 
> process, identified by an NSXPCListenerEndpoint object."
> Might this be a way to make it work (no idea how to get the 
> NSXPCListenerEndpoint from B to A yet).
> The documentation for NSXPCListenerEndpoint is somewhat terse. But it does 
> NSSecureCoding.

In order to get the endpoint from B to A you need a connection, so you have a 
chicken and egg problem. There’s some discussion I’ve seen about creating a 
helper service which exists just to pass the connection from one app to the 
other but the last time I read that discussion it seemed fraught with pain. 


> 
> 
> Step 2: Use Apple Events.
> 

Know nothing about Apple Events. 

What happened to the suggestions of using a domain socket or a directory both 
apps can read to do this? 

> 
> 
> Gerriet.
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
> 
> This email sent to [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to