aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.m
blob: f3b8c1d5b8a6f81d06a32e641942a07296746228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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];

	[app_delegate release];
	[pool drain];

	return EXIT_SUCCESS;
}