You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
428 B
Objective-C
19 lines
428 B
Objective-C
#include <Cocoa/Cocoa.h>
|
|
#include "AppDelegate.h"
|
|
|
|
id defaultAutoreleasePool;
|
|
id appDelegate;
|
|
|
|
void Initialize(void) {
|
|
defaultAutoreleasePool = [NSAutoreleasePool new];
|
|
[NSApplication sharedApplication];
|
|
[NSApp setDelegate: [[AppDelegate new] autorelease]];
|
|
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
|
|
}
|
|
|
|
int Run(void) {
|
|
[NSApp run];
|
|
[defaultAutoreleasePool drain];
|
|
return 0;
|
|
}
|