Type Method

runningApplications(withBundleIdentifier:)

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

Declaration

class func runningApplications(withBundleIdentifier bundleIdentifier: String) -> [NSRunningApplication]

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

init?(processIdentifier: pid_t)

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

class var current: NSRunningApplication

Returns an NSRunningApplication representing this application.