Re: Alternative to NSRunningApplication launchDate?
Re: Alternative to NSRunningApplication launchDate?
- Subject: Re: Alternative to NSRunningApplication launchDate?
- From: Kyle Sluder <email@hidden>
- Date: Fri, 01 Aug 2014 13:39:14 -0500
On Fri, Aug 1, 2014, at 01:30 PM, Sean McBride wrote:
> On Thu, 31 Jul 2014 20:58:53 +0100, Jonathan Mitchell said:
>
> >> 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
>
> That works great, thanks. I wonder why NSRunningApplication / Launch
> Services don't use that same sysctl...
Sounds like a good Radar to file.
(My wild guess? They wrote NSRunningApplication as a wrapper around the
Process Manager so they could deprecate the API without having to
actually rewrite it. Process Manager calls Launch Services because it
only really deals with processes launched "in the Mac way"—by
double-clicking their icon and such. Launch Services is answering the
questions in its own terms: it knows when processes it launched were
launched, and doesn't care about processes it didn't launch.)
--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