Einhugur macOS Bridge plugin. |

# EinhugurMacOSBridge.NSRunningApplication Class (desktop - console - web)

An object that can manipulate and provide information for a single instance of an app.

EinhugurCoreBridge.NSObject
NSRunningApplication

class EinhugurMacOSBridge.NSRunningApplication

#### Constructors

NSRunningApplication (private) | Private constructor.

#### Properties

ActivationPolicy | Indicates the activation policy of the application.
Active | Indicates whether the application is currently frontmost.
BundleIdentifier | Indicates the CFBundleIdentifier of the application.
BundleURL | Indicates the URL to the application's bundle.
ClassName (Inherited) (desktop - console) | Returns the name of the Cocoa class under the hood as String.
ExecutableArchitecture | Indicates the executing processor architecture for the application.
ExecutableURL | Indicates the URL to the application's executable.
FinishedLaunching | Indicates whether the receiver’s process has finished launching.
Handle (Inherited) | Returns Integer handle to the native NSObject structure.
Hidden | Indicates whether the application is currently hidden.
Icon | Returns the icon for the receiver’s application.
LaunchDate | Indicates the date when the application was launched.
LocalizedName | Indicates the localized name of the application.
OwnsMenuBar | Returns whether the application owns the current menu bar.
ProcessIdentifier | Indicates the process identifier (pid) of the application.
Terminated | Indicates that the receiver’s application has terminated.

#### Methods

ActivateWithOptions | Attempts to activate the application using the specified options.
shared Cast | Does deep cast on incoming NSObject to NSRunningApplication
shared CurrentApplication | Returns an NSRunningApplication representing this application.
ForceTerminate | Attempts to force the receiver to quit.
shared FromIntegerPtr | Constructs NSRunningApplication object from Integer handle coming from declares or 3rd party plugin.
Hide | Attempts to hide or the application.
shared IsNSRunningApplication | Returns true if the NSObject under the hood is NSRunningApplication or derived from NSRunningApplication.
Release (Inherited) | Releases the NSObject.
Retain (Inherited) | Retains the NSObject
shared RunningApplicationWithProcessIdentifier | Returns the running application with the given process identifier, or nil if no application has that pid.
shared RunningApplicationsWithBundleIdentifier | Returns an array of currently running applications with the specified bundle identifier.
Terminate | Attempts to quit the receiver normally.
shared TerminateAutomaticallyTerminableApplications | Terminates invisibly running applications as if triggered by system memory pressure.
Unhide | Attempts to unhide or the application.

#### Enumerations

ActivationPolicyValues | Enum values for Activation policy.
ArchitectureValues | Architecture enum values for the ExecutableArchitecture property on the NSRunningApplication class.

#### Constants

ActivationFlag_AllWindows = 1 | By default, activation brings only the main and key windows forward. If you specify NSApplicationActivateAllWindows, all of the application's windows are brought forward. This constant is used with the ActivateWithOptions method. Note that Zero for no options is also valid there.
ActivationFlag_IgnoringOtherApps = 2 | The application is activated regardless of the currently active app. This constant is used with the ActivateWithOptions method. Note that Zero for no options is also valid there.
Version = 5.0 (Inherited) |

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon

#### Unsupported Platforms:

- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit