Changeset 524
- Timestamp:
- 05/17/07 11:34:23 (2 years ago)
- Files:
-
- trunk/CPFPerianPrefPaneController.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CPFPerianPrefPaneController.m
r523 r524 203 203 } 204 204 205 - (NSDictionary *)myInfoDict; 206 { 207 return [NSDictionary dictionaryWithContentsOfFile:[[[self bundle] bundlePath] stringByAppendingPathComponent:@"Contents/Info.plist"]]; 208 } 209 205 210 - (void)checkForInstallation 206 211 { 207 NSDictionary *infoDict = [ [self bundle] infoDictionary];212 NSDictionary *infoDict = [self myInfoDict]; 208 213 NSString *myVersion = [infoDict objectForKey:BundleVersionKey]; 209 214 … … 275 280 [self checkForInstallation]; 276 281 NSString *lastInstVersion = [self getStringFromKey:LastInstalledVersionKey forAppID:perianAppID]; 277 NSString *myVersion = [[ [self bundle] infoDictionary] objectForKey:BundleVersionKey];282 NSString *myVersion = [[self myInfoDict] objectForKey:BundleVersionKey]; 278 283 if((lastInstVersion == nil || [lastInstVersion isVersionStringOlderThan:myVersion]) && installStatus != InstallStatusInstalled) 279 284 { … … 515 520 { 516 521 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 517 NSDictionary *infoDict = [ [self bundle] infoDictionary];522 NSDictionary *infoDict = [self myInfoDict]; 518 523 NSDictionary *myComponentsInfo = [infoDict objectForKey:ComponentInfoDictionaryKey]; 519 524 NSString *componentPath = [[[self bundle] resourcePath] stringByAppendingPathComponent:@"Components"]; … … 563 568 { 564 569 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 565 NSDictionary *infoDict = [ [self bundle] infoDictionary];570 NSDictionary *infoDict = [self myInfoDict]; 566 571 NSDictionary *myComponentsInfo = [infoDict objectForKey:ComponentInfoDictionaryKey]; 567 572
