V1ru8 V1ru8 - 6 months ago 36
C Question

List of all running processes

How can I get a list of the names of all currently running processes? (In C/Objective-C on Mac OS X.)


Cocoa processes can be retrieved from NSWorkspace

[[NSWorkspace sharedWorkspace] runningApplications]

For the entire process list (i.e. including non graphical) see Technical Q&A QA1123