Re: 10.10 replacement for SMJobCopyDictionary
Re: 10.10 replacement for SMJobCopyDictionary
- Subject: Re: 10.10 replacement for SMJobCopyDictionary
- From: Kyle Sluder <email@hidden>
- Date: Mon, 25 May 2015 16:04:01 -0500
On Mon, May 25, 2015, at 06:13 AM, Gerriet M. Denkmann wrote:
> How to translate this into 10.10 without deprecation warnings?
>
> CFDictionaryRef diref = SMJobCopyDictionary( kSMDomainSystemLaunchd,
> “de.mdenkmann.MyTool” );
> if ( diref == nil ) // MyTool is not running
The point of launchd is to start jobs on-demand. Why are you trying to
check if your launchd job is already running? What's to say that as soon
as launchd tells you it's running, it doesn't turn around and kill it
because its sudden termination suspension count dropped to 0?
--Kyle Sluder
_______________________________________________
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