Mac OS X Reference Library Apple Developer Connection spyglass button

Version: 1.0

Posted: 2009-05-29

Build Requirements: Mac OS X 10.6, Xcode 3.2

Runtime Requirements: Mac OS X 10.6

View Source Code:

Download Sample Code (“AppList.zip”, 85.5K)



Description

"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 are by NSWorkspace using:

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

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

Document Revision History

Date Notes
2009-05-29Demonstrates how to use the NSRunningApplication class provided by NSWorkspace for inspection of all running processes.
Did this document help you? Yes It's good, but... Not helpful...