// // active_resourceAppDelegate.m // active_resource // // Created by vickeryj on 8/21/08. // Copyright Joshua Vickery 2008. All rights reserved. // #import "objective_resourceAppDelegate.h" #import "ObjectiveResource.h" #import "PeopleViewController.h" @implementation objective_resourceAppDelegate @synthesize window, navigationController; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //Configure ObjectiveResource [ObjectiveResourceConfig setSite:@"http://localhost:9000/cgi-bin/WebObjects/ServEd.woa/ra/"]; // dogs is password protected [ObjectiveResourceConfig setUser:@"Hiro"]; [ObjectiveResourceConfig setPassword:@"Protagonist"]; // use json //[ObjectiveResourceConfig setResponseType:JSONResponse]; // use xml [ObjectiveResourceConfig setResponseType:XmlResponse]; [window addSubview:navigationController.view]; // Override point for customization after app launch [window makeKeyAndVisible]; return YES; } // from template - (void)applicationWillTerminate:(UIApplication *)application { // Save data if appropriate } #pragma mark - #pragma mark Memory management - (void)dealloc { [navigationController release]; [window release]; [super dealloc]; } @end