mirror of
https://github.com/Airr/nim-cocoa.git
synced 2024-11-24 09:45:30 +00:00
Created AppDelegate object
This commit is contained in:
parent
6212cd8f89
commit
10584c0c45
23
cocoa/widgets/appdelegate.m
Normal file
23
cocoa/widgets/appdelegate.m
Normal file
@ -0,0 +1,23 @@
|
||||
#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
|
Loading…
Reference in New Issue
Block a user