V1ru8 V1ru8 - 2 months ago 7
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.)

Answer

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