Skip to content

Instantly share code, notes, and snippets.

@ejknapp
Created December 1, 2009 01:31
Show Gist options
  • Save ejknapp/245974 to your computer and use it in GitHub Desktop.
Save ejknapp/245974 to your computer and use it in GitHub Desktop.
//Application Data Initialization
- (void)awakeFromNib {
// NSLog(@"waking up!");
[self managedObjectContext];
self.hostURL = @"http://flak.heroku.com";
NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
[cookieStorage setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
self.coreDataManager = [[FlakCoreDataManager alloc] init];
self.coreDataManager.managedObjectContext = [self managedObjectContext];
self.coreDataManager.flakManager = self;
self.serverManager = [[FlakServerManager alloc] init];
self.serverManager.flakManager = self;
self.settingsManager = [[FlakSettingsManager alloc] init];
self.settingsManager.flakManager = self;
[self startTimerForKeepAlive];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment