V1ru8 V1ru8 - 1 year ago 92
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download