From 2ce602f4036f39ea79424c4fcde60a07f9c6340e Mon Sep 17 00:00:00 2001 From: Armando Rivera Date: Fri, 13 Oct 2023 12:13:57 -0400 Subject: [PATCH] Moved delegate methods to 'AppDelegate' object --- cocoa/widgets/window.m | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/cocoa/widgets/window.m b/cocoa/widgets/window.m index e539884..e78caa4 100644 --- a/cocoa/widgets/window.m +++ b/cocoa/widgets/window.m @@ -91,21 +91,21 @@ [appMenuItem setSubmenu:appMenu]; } -- (void)applicationDidFinishLaunching: (NSNotification *)notification -{ - [[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self]; +// - (void)applicationDidFinishLaunching: (NSNotification *)notification +// { +// [[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self]; -} +// } -- (BOOL)applicationShouldTerminateAfterLastWindowClosed: (NSNotification *)notification -{ - return YES; -} - -- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification -{ - return YES; -} +// - (BOOL)applicationShouldTerminateAfterLastWindowClosed: (NSNotification *)notification +// { +// return YES; +// } + +// - (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification +// { +// return YES; +// } @end