aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-10-13 19:24:47 +0200
committerTeddy Wing2020-10-13 19:24:47 +0200
commitef216e7a533ed51fe66de168ccdf91635ae267bf (patch)
treed04630234f1eedac0d830ce62a73c75ee2e8bccb
parent464d258b0cc29f889fa3e36d43022a0c6ec8a546 (diff)
downloadDrop-Serve-ef216e7a533ed51fe66de168ccdf91635ae267bf.tar.bz2
AppDelegate.m: Terminate after window is closed
The application only has one window, and it doesn't really work if that window is closed. Also remove the unused `applicationDidFinishLaunching:` delegate method.
-rw-r--r--Drop Serve/AppDelegate.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Drop Serve/AppDelegate.m b/Drop Serve/AppDelegate.m
index c982dad..697604c 100644
--- a/Drop Serve/AppDelegate.m
+++ b/Drop Serve/AppDelegate.m
@@ -17,8 +17,9 @@
[super dealloc];
}
-- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
+- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
{
+ return YES;
}
- (void)applicationWillTerminate:(NSNotification *)notification