Skip to content

Instantly share code, notes, and snippets.

@neatlife
Created May 5, 2020 02:13
Show Gist options
  • Select an option

  • Save neatlife/b56a7e88baffa79e6343fc44458641f7 to your computer and use it in GitHub Desktop.

Select an option

Save neatlife/b56a7e88baffa79e6343fc44458641f7 to your computer and use it in GitHub Desktop.

Revisions

  1. neatlife created this gist May 5, 2020.
    19 changes: 19 additions & 0 deletions AppDelegate.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    import Cocoa

    @NSApplicationMain
    class AppDelegate: NSObject, NSApplicationDelegate {



    func applicationDidFinishLaunching(_ aNotification: Notification) {
    // Insert code here to initialize your application
    }

    func applicationWillTerminate(_ aNotification: Notification) {
    // Insert code here to tear down your application
    }

    func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
    return true
    }
    }