OSDN Git Service

メソッド名をtypoしてたので修正
authormasakih <masakih@users.sourceforge.jp>
Sun, 2 Mar 2014 02:41:02 +0000 (11:41 +0900)
committermasakih <masakih@users.sourceforge.jp>
Sun, 2 Mar 2014 02:41:02 +0000 (11:41 +0900)
すべてのウインドウを閉じると終了するようにした

KCD/HMAppDelegate.m

index 50ebb61..fea40b1 100644 (file)
@@ -82,6 +82,12 @@ static FILE* logFileP = NULL;
        
 }
 
+#pragma mark - NSApplicationDelegate
+- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender
+{
+       return YES;
+}
+
 #pragma mark - NSUserNotificationCenterDelegate
 - (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification
 {
@@ -114,7 +120,7 @@ static FILE* logFileP = NULL;
        }];
 }
 
-- (IBAction)openDoument:(id)sender
+- (IBAction)openDocument:(id)sender
 {
        NSOpenPanel *panel = [NSOpenPanel openPanel];
        [panel setAllowedFileTypes:@[@"plist"]];