Skip to content

Instantly share code, notes, and snippets.

@hechen
Created May 4, 2019 11:07
Show Gist options
  • Save hechen/3f1584032840c6283432d389c583ce61 to your computer and use it in GitHub Desktop.
Save hechen/3f1584032840c6283432d389c583ce61 to your computer and use it in GitHub Desktop.
ActivationPolicy
/* The following activation policies control whether and how an application may be activated. They are determined by the Info.plist. */
 public enum ActivationPolicy : Int {
 /* 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. */
 case regular
/* 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 LSUIElement=1 in the Info.plist. */
 case accessory
 
 /* The application does not appear in the Dock and may not create windows or be activated. This corresponds to LSBackgroundOnly=1 in the Info.plist. This is also the default for unbundled executables that do not have Info.plists. */
 case prohibited
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment