Moved delegate methods to 'AppDelegate' object

master
Armando Rivera 7 months ago
parent 1e74abaa7f
commit 2ce602f403
  1. 26
      cocoa/widgets/window.m

@ -91,21 +91,21 @@
[appMenuItem setSubmenu:appMenu]; [appMenuItem setSubmenu:appMenu];
} }
- (void)applicationDidFinishLaunching: (NSNotification *)notification // - (void)applicationDidFinishLaunching: (NSNotification *)notification
{ // {
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self]; // [[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self];
} // }
- (BOOL)applicationShouldTerminateAfterLastWindowClosed: (NSNotification *)notification // - (BOOL)applicationShouldTerminateAfterLastWindowClosed: (NSNotification *)notification
{ // {
return YES; // return YES;
} // }
- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification // - (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification
{ // {
return YES; // return YES;
} // }
@end @end

Loading…
Cancel
Save