aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.m
blob: 5316dc22a6c6bc4946cf14c7b5aa3349e60cd496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdlib.h>

#import <Cocoa/Cocoa.h>

#import "AppDelegate.h"

int main() {
	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

	NSApplication *application = [NSApplication sharedApplication];
	[application setActivationPolicy:NSApplicationActivationPolicyRegular];

	NSObject<NSApplicationDelegate> *app_delegate = [[AppDelegate alloc] init];

	[application setDelegate:app_delegate];
	[application run];

	[pool drain];

	return EXIT_SUCCESS;
}