AppList

Last Revision:
Version 1.1, 2014-05-06
Upgrade for Xcode 5.0, OS X 10.9, now uses ARC (Automatic Reference Counting) and Auto Layout.
(Full Revision History)
Build Requirements:
Xcode 5.0, OS X 10.9
Runtime Requirements:
OS X 10.8 or later

"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.