Skip to content

Instantly share code, notes, and snippets.

@jdewind
Created April 21, 2011 12:05
Show Gist options
  • Save jdewind/934331 to your computer and use it in GitHub Desktop.
Save jdewind/934331 to your computer and use it in GitHub Desktop.
@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