Created
July 21, 2011 16:22
-
-
Save dcrosby42/1097557 to your computer and use it in GitHub Desktop.
App delegate implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CrozSpecialAppDelegate.m | |
// CrozSpecial | |
// | |
// Created by David Crosby on 7/21/11. | |
// Copyright 2011 __MyCompanyName__. All rights reserved. | |
// | |
#import "CrozSpecialAppDelegate.h" | |
#import "CrozSpecialObjectionModule.h" | |
#import "ApplicationBootstrapper.h" | |
@implementation CrozSpecialAppDelegate | |
@synthesize window=_window; | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
CGSize screenSize = [UIScreen mainScreen].bounds.size; | |
self.window = [[[UIWindow alloc] initWithFrame:CGRectMake(0,0,screenSize.width, screenSize.height)] autorelease]; | |
ObjectionInjector *injector = [Objection createInjector:[[[CrozSpecialObjectionModule alloc] initWithWindow:self.window] autorelease]]; | |
[Objection setGlobalInjector:injector]; | |
ApplicationBootstrapper *bootstrapper = [[Objection globalInjector] getObject:[ApplicationBootstrapper class]]; | |
[bootstrapper bootstrap]; | |
return YES; | |
} | |
- (void)dealloc | |
{ | |
[_window release]; | |
[super dealloc]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment