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 (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