Objective-c – List of all running processes

cmacosobjective c

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

Best 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