Created
April 21, 2011 12:05
-
-
Save jdewind/934331 to your computer and use it in GitHub Desktop.
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
@implementation MyController | |
@synthesize applicationModel = _applicationModel; | |
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
{ | |
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
if (self) { | |
self.applicationModel = [[Objection globalInjector] getObject:[WCMyControllerApplicationModel class]]; | |
self.applicationModel.controller = self; | |
self.title = NSLocalizedString(@"My Title", @""); | |
} | |
return self; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment