• 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: Alternative to NSRunningApplication launchDate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternative to NSRunningApplication launchDate?


  • Subject: Re: Alternative to NSRunningApplication launchDate?
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 01 Aug 2014 13:21:15 -0500

On Aug 1, 2014, at 12:49 PM, Rainer Brockerhoff <email@hidden> wrote:

> On 8/1/14, 14:33, email@hidden wrote:
>> Date: Thu, 31 Jul 2014 15:46:21 -0400
>> From: Sean McBride <email@hidden>
>> Subject: Alternative to NSRunningApplication launchDate?
>> Message-ID: <email@hidden>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> The docs for NSRunningApplication launchDate say "only available for applications that were launched by LaunchServices."
>>
>> And indeed if the app was launched by Xcode (for debugging) launchDate returns nil.
>>
>> Anyone know another way of finding an app's launch date?  Some UNIX layer API?
>
> The old Process Manager APIs - specifically, GetProcessPID(), GetNextProcess() and GetProcessInformation() - do what you want; they were deprecated in 10.9 but still work on 10.10. And, as far as I know, no substitute API has been announced yet.

I'm pretty sure that the Process Manager APIs have the exact same limitations as NSRunningApplication (and NSWorkspace, etc.).  Indeed, NSRunningApplication is the replacement API that you're looking for.

Regards,
Ken


_______________________________________________

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: 
 >Re: Alternative to NSRunningApplication launchDate? (From: Rainer Brockerhoff <email@hidden>)

  • Prev by Date: Re: ARC and NSObjectController bindings through file's owner
  • Next by Date: Re: Alternative to NSRunningApplication launchDate?
  • Previous by thread: Re: Alternative to NSRunningApplication launchDate?
  • Next by thread: Re: Alternative to NSRunningApplication launchDate?
  • Index(es):
    • Date
    • Thread