Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSLog(@"Trying to delete video for: %@", [object valueForKey:@"title"]);
- NSArray *files = [NSArray arrayWithObject:[[object valueForKey:@"filePath"] lastPathComponent]];
- NSString *sourceDir = [[object valueForKey:@"filePath"] stringByDeletingLastPathComponent];
- NSString *trashDir = [NSHomeDirectory() stringByAppendingPathComponent:@".Trash"];
- int tag;
- [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:sourceDir destination:trashDir files:files tag:&tag];
Add Comment
Please, Sign In to add comment