On 6 Aug 2014, at 12:30, Roland King <[email protected]> wrote: > >> 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.
Yes, I finally did come to the same conclusion. > >> 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. I thought: take the endpoint of B, archive it, put it on a pasteboard and let A read it. (Not for real, just for testing). But I got told: " This class may only be encoded by an NSXPCCoder." This was the final straw. So: no more about XPC. Kind regards, 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/archive%40mail-archive.com This email sent to [email protected]
