Re: Alternative to NSRunningApplication launchDate?
Re: Alternative to NSRunningApplication launchDate?
- Subject: Re: Alternative to NSRunningApplication launchDate?
- From: Jonathan Mitchell <email@hidden>
- Date: Thu, 31 Jul 2014 20:58:53 +0100
On 31 Jul 2014, at 20:46, Sean McBride <email@hidden> wrote:
> Hi all,
>
> 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?
sysctl?
You can extract what you need from this:
http://stackoverflow.com/questions/17483407/is-there-any-way-to-get-the-applications-run-time-in-cocoa-for-os-x
Jonathan
>
> Thanks,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng email@hidden
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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