5 changed files with 61 additions and 29 deletions
@ -0,0 +1,24 @@ |
|||||
|
#include "common.h" |
||||
|
@interface AvnAppDelegate : NSObject<NSApplicationDelegate> |
||||
|
@end |
||||
|
|
||||
|
@implementation AvnAppDelegate |
||||
|
- (void)applicationWillFinishLaunching:(NSNotification *)notification |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
- (void)applicationDidFinishLaunching:(NSNotification *)notification |
||||
|
{ |
||||
|
[NSApp activateIgnoringOtherApps:true]; |
||||
|
} |
||||
|
|
||||
|
@end |
||||
|
|
||||
|
extern void InitializeAvnApp() |
||||
|
{ |
||||
|
NSApplication* app = [NSApplication sharedApplication]; |
||||
|
id delegate = [AvnAppDelegate new]; |
||||
|
[app setDelegate:delegate]; |
||||
|
|
||||
|
} |
||||
Loading…
Reference in new issue