I am wanting to capture a list of all running processes for OSX and save them as a file in Xcode / Cocoa. I googled this and all I found was:

[myWorkspace runningApplications];

And I am not sure how to do this. Please Help! Thank you!