How can I get a list of the names of all currently running processes? (In C/Objective-C on Mac OS X.)
A:
I know you can do this on unix like systems. In the directory /proc are directories which stand for every process. In those directories you have a file called cmdline which hold the command line who started this process.
I don't know if this is the same on Mac OS X, but you can go further with that.
VDVLeon
2009-12-11 17:08:57
/proc is a Linux idiom and not available on OS X.
jon hohle
2009-12-11 17:29:00
jon hohle: Very true, but I think you meant "an **awesome** Linux idiom".
Jason Orendorff
2009-12-11 17:40:36
A:
A simple google search yielded the following result for me :
Notice this goes even further and adds a function to search for a running process.
Amir Afghani
2009-12-11 17:11:24
+3
A:
Cocoa processes can be retrived from NSWorkspace [[NSWorkspace sharedWorkspace] runningApplications]
For the entire process list (i.e. including non graphical) see Technical Q&A QA1123
diciu
2009-12-11 17:38:37