Changeset 1011

Show
Ignore:
Timestamp:
01/15/09 15:20:13 (1 year ago)
Author:
gbooker
Message:

Changed NSWorkspaceRecycleOperation to use removeFileAtPath for components.
Refs #395

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CPFPerianPrefPaneController.m

    r998 r1011  
    591591                        //Remove the old one here 
    592592                        int tag = 0; 
    593                         BOOL result = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:containingDir destination:@"" files:[NSArray arrayWithObject:component] tag:&tag]; 
     593                        BOOL result = [[NSFileManager defaultManager] removeFileAtPath:[containingDir stringByAppendingPathComponent:component] handler:nil]; 
    594594                        if(result == NO) 
    595595                                ret = NO; 
     
    609609 
    610610                if(userInstalled) 
    611                         [self _authenticatedRemove:[containingDir stringByAppendingPathComponent:component]]; 
     611                        ret = [self _authenticatedRemove:[containingDir stringByAppendingPathComponent:component]]; 
    612612                else 
    613613                { 
    614614                        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]; 
    616616                } 
    617617        }