Skip to content

Instantly share code, notes, and snippets.

@dcrosby42
Created July 21, 2011 16:22
Show Gist options
  • Save dcrosby42/1097557 to your computer and use it in GitHub Desktop.
Save dcrosby42/1097557 to your computer and use it in GitHub Desktop.
App delegate implementation
//
// 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