Re: Modern way of getting the list of running applications?
Re: Modern way of getting the list of running applications?
- Subject: Re: Modern way of getting the list of running applications?
- From: David Duncan <email@hidden>
- Date: Mon, 9 Jul 2007 16:45:58 -0700
On Jul 9, 2007, at 4:03 PM, Alastair Houghton wrote:
It looks as if the Process Manager calls through to a set of
undocumented APIs with the prefix "CPS" (there appear to be some
apps using one or two of these calls right now, and the guess is
that "CPS" stands for Core Process Services). It's a shame that
these aren't documented, because it looks as if I the CPS APIs can
give a path for the process's bundle, which the Process Manager
GetProcessBundleLocation() API converts to an FSRef only for my
code to change it straight back to a path again.
Someone even posted a header for the CPS APIs on Cocoadev:
http://www.cocoadev.com/index.pl?CoreProcessServices
Anyway, maybe we should file some Radars requesting access to the
CPS API?
Last year Eric Schlegel wrote this to Carbon-Dev <http://
lists.apple.com/archives/carbon-dev/2006/Jun/msg00267.html>:
"Some of you might be using some of the SPI exported by CoreGraphics
that begins with "CPS". If you are, we're planning to yank that
entire SPI in Leopard and replace it with a different SPI, so this
would be a good time to file Radar bugs describing how you're using
it, so we have a chance to add corresponding API that you could use.
Or if you've already filed feature requests that haven't been
implemented yet, let me know the bug numbers."
I would highly highly recommend against using the CPS SPIs (as with
all other SPI). As Eric said, file radars for the functionality that
you need.
--
David Duncan
Apple DTS Quartz and Printing
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