diff options
| author | Teddy Wing | 2020-10-13 19:24:47 +0200 |
|---|---|---|
| committer | Teddy Wing | 2020-10-13 19:24:47 +0200 |
| commit | ef216e7a533ed51fe66de168ccdf91635ae267bf (patch) | |
| tree | d04630234f1eedac0d830ce62a73c75ee2e8bccb | |
| parent | 464d258b0cc29f889fa3e36d43022a0c6ec8a546 (diff) | |
| download | Drop-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.m | 3 |
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 |
