diff -r 75880595a9f1 -r 90585aba87ad cocoaTouch/SettingsViewController.m --- a/cocoaTouch/SettingsViewController.m Sat Jan 16 06:48:56 2010 +0000 +++ b/cocoaTouch/SettingsViewController.m Sat Jan 16 17:30:37 2010 +0000 @@ -14,7 +14,7 @@ @synthesize username, password, musicOn, effectsOn, altDamageOn, volumeSlider, volumeLabel; -(void) viewDidLoad { - NSString *filePath = [SDLUIKitDelegate dataFilePath:@"settings.plist"]; + NSString *filePath = [[SDLUIKitDelegate sharedAppDelegate] dataFilePath:@"settings.plist"]; if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]) { NSUserDefaults *data = [[NSMutableDictionary alloc] initWithContentsOfFile:filePath]; @@ -79,7 +79,7 @@ [saveArray setObject:tmpAlt forKey:@"alternate"]; [saveArray setObject:volumeLabel.text forKey:@"volume"]; - [saveArray writeToFile:[SDLUIKitDelegate dataFilePath:@"settings.plist"] atomically:YES]; + [saveArray writeToFile:[[SDLUIKitDelegate sharedAppDelegate] dataFilePath:@"settings.plist"] atomically:YES]; [saveArray release]; [super viewWillDisappear:animated]; }