diff options
| author | Teddy Wing | 2016-11-19 09:24:21 -0500 |
|---|---|---|
| committer | Teddy Wing | 2016-11-19 09:24:21 -0500 |
| commit | ab43ce8f30cd6b286e002ee734344e50ba816c18 (patch) | |
| tree | baad8b33e122af6dacad8451b3c57589832ac6f6 | |
| parent | e7b97eb3c2656cae4d173c41d2006c32735ddb82 (diff) | |
| download | Low-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.m | 5 |
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 |
