From ef216e7a533ed51fe66de168ccdf91635ae267bf Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 13 Oct 2020 19:24:47 +0200 Subject: 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. --- Drop Serve/AppDelegate.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3