nim-cocoa/cocoa/widgets/appdelegate.m
2023-10-13 12:04:22 -04:00

24 lines
504 B
Objective-C

#import <Cocoa/Cocoa.h>
#import "col.h"
@implementation AppDelegate : NSObject
- (void)applicationDidFinishLaunching: (NSNotification *)notification
{
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self];
}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed: (NSNotification *)notification
{
return YES;
}
- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification
{
return YES;
}
@end