Changeset 1011
- Timestamp:
- 01/15/09 15:20:13 (1 year ago)
- Files:
-
- trunk/CPFPerianPrefPaneController.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CPFPerianPrefPaneController.m
r998 r1011 591 591 //Remove the old one here 592 592 int tag = 0; 593 BOOL result = [[NS Workspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:containingDir destination:@"" files:[NSArray arrayWithObject:component] tag:&tag];593 BOOL result = [[NSFileManager defaultManager] removeFileAtPath:[containingDir stringByAppendingPathComponent:component] handler:nil]; 594 594 if(result == NO) 595 595 ret = NO; … … 609 609 610 610 if(userInstalled) 611 [self _authenticatedRemove:[containingDir stringByAppendingPathComponent:component]];611 ret = [self _authenticatedRemove:[containingDir stringByAppendingPathComponent:component]]; 612 612 else 613 613 { 614 614 int tag = 0; 615 [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:containingDir destination:@"" files:[NSArray arrayWithObject:component] tag:&tag];615 ret = [[NSFileManager defaultManager] removeFileAtPath:[containingDir stringByAppendingPathComponent:component] handler:nil]; 616 616 } 617 617 }
