Instance Property


Returns an array of NSRunningApplication representing the running apps.


@property(readonly, copy) NSArray<NSRunningApplication *> *runningApplications;

Return Value

An array of NSRunningApplication instances.


The order of the array is unspecified, but it is stable, meaning that the relative order of particular apps will not change across multiple calls to runningApplications. See NSRunningApplication for more information on NSRunningApplication.

Similar to the NSRunningApplication class’s properties, this property will only change when the main run loop is run in a common mode. Instead of polling, use key-value observing to be notified of changes to this array property.

It is safe to call this method from any of your app’s threads. The method returns its value atomically.

This value returned by this method is observable using key-value observing.

See Also

Requesting Information

- getInfoForFile:application:type:

Retrieves information about the specified file.

- URLForApplicationToOpenURL:

Returns the URL to the default app that would be used to open the given URL.

- fullPathForApplication:

Returns the full path for the specified app.

- isFilePackageAtPath:

Determines whether the specified path is a file package.


Returns the frontmost app, which is the app that receives key events.


Returns the app that owns the currently displayed menu bar.