aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-11-19 09:24:21 -0500
committerTeddy Wing2016-11-19 09:24:21 -0500
commitab43ce8f30cd6b286e002ee734344e50ba816c18 (patch)
treebaad8b33e122af6dacad8451b3c57589832ac6f6
parente7b97eb3c2656cae4d173c41d2006c32735ddb82 (diff)
downloadLow-Battery-Yup-ab43ce8f30cd6b286e002ee734344e50ba816c18.tar.bz2
Low Battery Yup: Close the application when window is closed
This app has only one window and one function. Since it's so simple, it only needs to be open for a short time. It should close when its window is closed.
-rw-r--r--Low Battery Yup/AppDelegate.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Low Battery Yup/AppDelegate.m b/Low Battery Yup/AppDelegate.m
index 0c9bbdc..e5b9d90 100644
--- a/Low Battery Yup/AppDelegate.m
+++ b/Low Battery Yup/AppDelegate.m
@@ -20,4 +20,9 @@
// Insert code here to initialize your application
}
+- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
+{
+ return YES;
+}
+
@end