From: Kent Sutherland Date: Sat, 20 Dec 2003 14:59:13 +0000 (+0000) Subject: Fixed more bugs having to do with the updating of the prefs file to 1.2 X-Git-Tag: v1.2~6 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/6d2e5d5b377e0aa56ae05c495a4b2d1a31637c59 Fixed more bugs having to do with the updating of the prefs file to 1.2 --- diff --git a/MainController.m b/MainController.m index 2ac5ac6..afc0db2 100755 --- a/MainController.m +++ b/MainController.m @@ -55,9 +55,10 @@ static MainController *sharedController; SetITDebugMode(YES); } - if (![df stringForKey:@"appVersion"]) { + if (([df integerForKey:@"appVersion"] < 1200) && ([df integerForKey:@"SongsInAdvance"] > 0)) { [df removePersistentDomainForName:@"com.ithinksw.menutunes"]; - [df setObject:@"1.2" forKey:@"appVersion"]; + [df synchronize]; + [[PreferencesController sharedPrefs] registerDefaults]; [[StatusWindowController sharedController] showPreferencesUpdateWindow]; } diff --git a/PreferencesController.m b/PreferencesController.m index 9225973..fc25302 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -515,6 +515,7 @@ static PreferencesController *prefs = nil; @"quit", nil] forKey:@"menu"]; + [df setInteger:1200 forKey:@"appVersion"]; [df setInteger:5 forKey:@"SongsInAdvance"]; // [df setBool:YES forKey:@"showName"]; // Song info will always show song title. [df setBool:YES forKey:@"showArtist"]; @@ -528,6 +529,8 @@ static PreferencesController *prefs = nil; [df setFloat:4.0 forKey:@"statusWindowVanishDelay"]; [df setInteger:(int)ITWindowPositionBottom forKey:@"statusWindowVerticalPosition"]; [df setInteger:(int)ITWindowPositionLeft forKey:@"statusWindowHorizontalPosition"]; + [[StatusWindow sharedWindow] setVerticalPosition:(int)ITWindowPositionBottom]; + [[StatusWindow sharedWindow] setHorizontalPosition:(int)ITWindowPositionLeft]; [df setBool:YES forKey:@"showSongInfoOnChange"]; [df setObject:[NSArchiver archivedDataWithRootObject:[NSColor blueColor]] forKey:@"statusWindowBackgroundColor"]; diff --git a/libValidate.a b/libValidate.a index a795800..424395d 100755 Binary files a/libValidate.a and b/libValidate.a differ