Putting Xpc Helper into Library/LaunchAgents
Putting Xpc Helper into Library/LaunchAgents
- Subject: Putting Xpc Helper into Library/LaunchAgents
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 10 Aug 2014 13:18:29 +0700
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.
_______________________________________________
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