> On 10 Aug 2014, at 2:18 pm, Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote:
> 
> I have an app with an Xpc Helper, which currently starts with:
>       NSXPCConnection( serviceName: xpcServiceName )
> But the goal is that two apps should talk to each other, the Xpc Helper being 
> used to exchange endpoints.
> 
> So I have to use:
>       NSXPCConnection(machServiceName: xpcServiceName, options: 0)
> For this my Xpc Helper has to live in Library/LaunchAgents.
> 
> Is there any Cocoa (or lower level) way to do this?
> Or should I just use FileManager to copy the Xpc Helper?
> 
> In the case of a privileged Helper I once used SMJobBless(). But this Helper 
> does need no root rights.
> 
> There is SMJobSubmit() which looks like it does what I need. But: "Deprecated 
> in OS X v10.10".
> What is the modern and future-proof replacement for this?
> 
> Gerriet.
> 
> 

Can you not make an installer which installs your app in /Applications and your 
helper app in Library/LaunchAgents, running whatever scripts are necessary? 

Stephan Sudre wrote the awesome Packages app 
(http://s.sudre.free.fr/Software/Packages/about.html) which will install just 
about anything just about anywhere. I use it for one of my apps which needs a 
couple of helper binaries stuffed into /usr/local/bin, it does a great job. 


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to