forked from jsonmodel/jsonmodel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppDelegate.m
35 lines (25 loc) · 886 Bytes
/
AppDelegate.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// AppDelegate.m
// JSONModelOSX
//
// Created by Marin Todorov on 25/12/2012.
// Copyright (c) 2012 Underplot ltd. All rights reserved.
//
#import "AppDelegate.h"
#import "ViewController.h"
@interface AppDelegate()
@property (strong, nonatomic) ViewController* controller;
@end
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
// Insert code here to initialize your application
self.controller = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
self.window.contentView = self.controller.view;
self.controller.view.frame = ((NSView*)self.window.contentView).bounds;
self.controller.view.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication {
return YES;
}
@end