Skip to content

Instantly share code, notes, and snippets.

@AquaGeek
Created March 22, 2017 22:29
Show Gist options
  • Save AquaGeek/75c83513c941c635b83e1f7d84a85a1d to your computer and use it in GitHub Desktop.
Save AquaGeek/75c83513c941c635b83e1f7d84a85a1d to your computer and use it in GitHub Desktop.
macOS/AppKit tips

Override stupid system default that disables state restoration.

UserDefaults.standard.set(true, forKey: "NSQuitAlwaysKeepsWindows")  // override stupid global preference, so our state restore works properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment