diff options
Diffstat (limited to 'src/AppDelegate.m')
-rw-r--r-- | src/AppDelegate.m | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/AppDelegate.m b/src/AppDelegate.m new file mode 100644 index 0000000..270be25 --- /dev/null +++ b/src/AppDelegate.m @@ -0,0 +1,28 @@ +#import "AppDelegate.h" + +@implementation AppDelegate + +- (void)dealloc +{ + [_window release]; + [super dealloc]; +} + +- (void)applicationWillFinishLaunching:(NSNotification *)notification +{ + _window = [[NSWindow alloc] + initWithContentRect:NSMakeRect(0, 0, 400, 400) + styleMask:NSWindowStyleMaskTitled + backing:NSBackingStoreBuffered + defer:NO]; + + [_window setTitle:@"Application"]; +} + +- (void)applicationDidFinishLaunching:(NSNotification *)notification +{ + [_window cascadeTopLeftFromPoint:NSMakePoint(100, 100)]; + [_window makeKeyAndOrderFront:nil]; +} + +@end |