Changeset 903
- Timestamp:
- 05/26/08 13:51:49 (3 months ago)
- Files:
-
- trunk/CPFPerianPrefPaneController.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CPFPerianPrefPaneController.m
r792 r903 644 644 NSDictionary *infoDict = [self myInfoDict]; 645 645 NSDictionary *myComponentsInfo = [infoDict objectForKey:ComponentInfoDictionaryKey]; 646 NSFileManager *fileManager = [NSFileManager defaultManager]; 647 NSString *componentPath; 646 648 647 649 [errorString release]; … … 653 655 654 656 int tag = 0; 655 BOOL result = NO;657 componentPath = [[self quickTimeComponentDir:userInstalled] stringByAppendingPathComponent:@"Perian.component"]; 656 658 if(auth != nil && !userInstalled) 657 [self _authenticatedRemove: [[self quickTimeComponentDir:userInstalled] stringByAppendingPathComponent:@"Perian.component"]];658 else 659 result = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:[self quickTimeComponentDir:userInstalled] destination:@"" files:[NSArray arrayWithObject:@"Perian.component"] tag:&tag];659 [self _authenticatedRemove:componentPath]; 660 else 661 [fileManager removeFileAtPath:componentPath handler:nil]; 660 662 661 663 NSEnumerator *componentEnum = [myComponentsInfo objectEnumerator]; … … 665 667 ComponentType type = [[myComponent objectForKey:ComponentTypeKey] intValue]; 666 668 NSString *directory = [self basePathForType:type user:userInstalled]; 669 componentPath = [directory stringByAppendingPathComponent:[myComponent objectForKey:ComponentNameKey]]; 667 670 if(auth != nil && !userInstalled) 668 [self _authenticatedRemove: [directory stringByAppendingPathComponent:[myComponent objectForKey:ComponentNameKey]]];671 [self _authenticatedRemove:componentPath]; 669 672 else 670 result = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:directory destination:@"" files:[NSArray arrayWithObject:[myComponent objectForKey:ComponentNameKey]] tag:&tag];673 [fileManager removeFileAtPath:componentPath handler:nil]; 671 674 } 672 675 if(auth != nil)
