Guest User

Untitled

a guest
Apr 26th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. NSLog(@"Trying to delete video for: %@", [object valueForKey:@"title"]);
  2. NSArray *files = [NSArray arrayWithObject:[[object valueForKey:@"filePath"] lastPathComponent]];
  3. NSString *sourceDir = [[object valueForKey:@"filePath"] stringByDeletingLastPathComponent];
  4. NSString *trashDir = [NSHomeDirectory() stringByAppendingPathComponent:@".Trash"];
  5. int tag;
  6. [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:sourceDir destination:trashDir files:files tag:&tag];
Add Comment
Please, Sign In to add comment