// // TouchEdLightlyAppDelegate.m // TouchEdLightly // // Created by David Avendasora on 4/23/10. // Copyright WO-NoVA 2010. All rights reserved. // #import "TouchEdLightlyAppDelegate.h" #import "RootViewController.h" #import "ObjectiveResourceConfig.h" @implementation TouchEdLightlyAppDelegate @synthesize window; @synthesize navigationController; #pragma mark - #pragma mark Application lifecycle - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after app launch [ObjectiveResourceConfig setSite:@"http://localhost:9000/cgi-bin/WebObjects/ServEd.woa/ra/"]; // server is password protected [ObjectiveResourceConfig setUser:@"Hiro"]; [ObjectiveResourceConfig setPassword:@"Protagonist"]; // use json //[ObjectiveResourceConfig setResponseType:JSONResponse]; // use xml [ObjectiveResourceConfig setResponseType:XmlResponse]; [window addSubview:[navigationController view]]; [window makeKeyAndVisible]; return YES; } - (void)applicationWillTerminate:(UIApplication *)application { // Save data if appropriate } #pragma mark - #pragma mark Memory management - (void)dealloc { [navigationController release]; [window release]; [super dealloc]; } @end