Type Method

runningApplicationsWithBundleIdentifier:

Returns an array of currently running applications with the specified bundle identifier.

Declaration

+ (NSArray<NSRunningApplication *> *)runningApplicationsWithBundleIdentifier:(NSString *)bundleIdentifier;

Parameters

bundleIdentifier

The bundle identifier.

Return Value

An array of NSRunningApplications, or an empty array if no applications match the bundle identifier.

See Also

Getting Running Application Instances

+ runningApplicationWithProcessIdentifier:

Returns the running application with the given process identifier, or nil if no application has that pid.

currentApplication

Returns an NSRunningApplication representing this application.