On 8/1/14, 14:33, cocoa-dev-requ...@lists.apple.com wrote:
Date: Thu, 31 Jul 2014 15:46:21 -0400
From: Sean McBride <s...@rogue-research.com>
Subject: Alternative to NSRunningApplication launchDate?
Message-ID: <20140731194621.1455233...@mail.rogue-research.com>
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.
HTH,
--
Rainer Brockerhoff <rai...@brockerhoff.net>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
http://brockerhoff.net/blog/
_______________________________________________
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