• 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: 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


References: 
 >Re: Alternative to NSRunningApplication launchDate? (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Alternative to NSRunningApplication launchDate?
  • Next by Date: Re: ARC and NSObjectController bindings through file's owner
  • Previous by thread: Re: Alternative to NSRunningApplication launchDate?
  • Next by thread: How to disable volume ramp when playing audio with AVPlayer?
  • Index(es):
    • Date
    • Thread