From b20efa1f037178616ee943595c855612ff0bd1f2 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 29 Jul 2017 15:17:43 -0400 Subject: [PATCH] Automatically save upon exiting application --- writeas/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writeas/AppDelegate.swift b/writeas/AppDelegate.swift index 9599da9..4c60e28 100644 --- a/writeas/AppDelegate.swift +++ b/writeas/AppDelegate.swift @@ -23,7 +23,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { } func applicationWillTerminate(_ aNotification: Notification) { - // Insert code here to tear down your application + vc?.saveDocument() } func applicationDidBecomeActive(_ notification: Notification) {