Instance Property


Returns an array of running apps.


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

Return Value

An array of NSRunningApplication instances. This value is key-value observing compliant.


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 runs in a common mode. Instead of polling, use key-value observing to be notified of changes to this array property.

You can safely call this method from any of your app’s threads. The method returns its value atomically.

See Also

Requesting Information

- getInfoForFile:application:type:

Retrieves information about the specified file.

- URLForApplicationToOpenURL:

Returns the URL to the default app that would be opened.

- getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:

Returns information about the file system at the specified path.

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