define app delegate
parent
353929978e
commit
1c3612e33f
@ -0,0 +1,5 @@
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
@interface AppDelegate : NSObject <NSApplicationDelegate>
|
||||
|
||||
@end
|
@ -0,0 +1,30 @@
|
||||
#import "AppDelegate.h"
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
- (void) applicationWillFinishLaunching:(NSNotification *)notification {
|
||||
NSLog(@"applicationWillFinishLaunching");
|
||||
}
|
||||
|
||||
- (void) applicationDidFinishLaunching:(NSNotification *)notification {
|
||||
NSLog(@"applicationDidFinishLaunching");
|
||||
}
|
||||
|
||||
// Application Termination -----------------------------------------------------
|
||||
|
||||
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender {
|
||||
NSLog(@"applicationShouldTerminate");
|
||||
return NSTerminateNow;
|
||||
}
|
||||
|
||||
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender {
|
||||
NSLog(@"applicationShouldTerminateAfterLastWindowClosed");
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)applicationWillTerminate:(NSNotification *)notification {
|
||||
NSLog(@"applicationWillTerminate");
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in New Issue