• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Putting Xpc Helper into Library/LaunchAgents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Putting Xpc Helper into Library/LaunchAgents
      • From: Roland King <email@hidden>
  • Prev by Date: Obtaining baseline from CATextLayer
  • Next by Date: Re: Putting Xpc Helper into Library/LaunchAgents
  • Previous by thread: Re: Obtaining baseline from CATextLayer
  • Next by thread: Re: Putting Xpc Helper into Library/LaunchAgents
  • Index(es):
    • Date
    • Thread