• 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
Re: 10.10 replacement for SMJobCopyDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >10.10 replacement for SMJobCopyDictionary (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: 10.10 replacement for SMJobCopyDictionary
  • Next by Date: Re: Copy test docs to Simulator App's Documents folder?
  • Previous by thread: 10.10 replacement for SMJobCopyDictionary
  • Next by thread: Re: Copy test docs to Simulator App's Documents folder?
  • Index(es):
    • Date
    • Thread