␉if (oldGlobalPreferences!=nil)␊ |
␉{␊ |
␉␉mPreferenceFileVersion= [[oldGlobalPreferences objectForKey: keyPreferencesFileVersion] intValue ];␊ |
␉␉[PreferencesControllerBase doForEachGroup: SetDefaultValues withOption: oldGlobalPreferences];␊ |
␉␉[PreferencesControllerBase doForEachGroup: LoadPreferencesOptions withOption: oldGlobalPreferences];␊ |
␉␉[mPartitionsDict addEntriesFromDictionary: [oldGlobalPreferences objectForKey: keyPartitionsList] ];␊ |
␉}␊ |
␉else ␊ |
␉{ // Create a preference plist file with Defaults values␊ |
␉␉oldGlobalPreferences = [[NSMutableDictionary alloc] init];␊ |
␉␉[PreferencesControllerBase loadAllValues: oldGlobalPreferences];␊ |
␉␉[PreferencesControllerBase doForEachGroup: SetDefaultValues withOption: oldGlobalPreferences];␊ |
␉␉␊ |
␉␉// Initialize defaults␊ |
␉␉[oldGlobalPreferences setObject: [[NSNumber alloc] initWithInt: CurrentPreferencesFileVersion] ␊ |