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