AppList

Last Revision:
Version 1.0, 2009-05-29
Demonstrates how to use the NSRunningApplication class provided by NSWorkspace for inspection of all running processes.
Build Requirements:
Mac OS X 10.6, Xcode 3.2
Runtime Requirements:
Mac OS X 10.6

"AppList" is a Cocoa sample application that demonstrates how to use the NSRunningApplication class provided by NSWorkspace. NSRunningApplication can be used for inspecting and manipulating running applications on the system. An array of these objects can be obtained from NSWorkspace, by doing:

NSArray *appList = [[NSWorkspace sharedWorkspace] runningApplications];

Only user applications can be tracked; this does not provide information about every process on the system.