The following activation policies control whether and how an application may be activated. They are used by activationPolicy.
Available in Mac OS X v10.6 and later.
C# | Visual Basic | Visual C++ |
public enum NSApplicationActivationPolicy
Public Enumeration NSApplicationActivationPolicy
public enum class NSApplicationActivationPolicy
Member | Description |
---|---|
NSApplicationActivationPolicyRegular | The application is an ordinary app that appears in the Dock and may have a user interface. This is the default for bundled apps, unless overridden in the Info.plist. Available in Mac OS X v10.6 and later. |
NSApplicationActivationPolicyAccessory | The application does not appear in the Dock and does not have a menu bar, but it may be activated programmatically or by clicking on one of its windows. This corresponds to value of the LSUIElement key in the application’s Info.plist being 1. Available in Mac OS X v10.6 and later. |
NSApplicationActivationPolicyProhibited | The application does not appear in the Dock and may not create windows or be activated. This corresponds to the value of the LSBackgroundOnly key in the application’s Info.plist being 1. This is also the default for unbundled executables that do not have Info.plists. Available in Mac OS X v10.6 and later. |
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)