Returns an array of running apps.
- macOS 10.6+
An array of
NSRunning 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
NSRunning for more information on
Similar to the
NSRunning 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.