mirror of
https://github.com/Airr/nim-cocoa.git
synced 2024-11-24 09:45:30 +00:00
24 lines
504 B
Objective-C
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
|