Use URL-based (modern?) NSWorkspace method

This commit is contained in:
Jacob Bandes-Storch
2012-08-21 21:43:42 -07:00
committed by Allan Odgaard
parent caf77cc40c
commit f24462a523

View File

@@ -338,8 +338,8 @@ static NSURL* ParentForURL (NSURL* url)
- (void)showSelectedEntriesInFinder:(id)sender
{
for(NSString* aPath in self.selectedPaths)
[[NSWorkspace sharedWorkspace] selectFile:aPath inFileViewerRootedAtPath:[aPath stringByDeletingLastPathComponent]];
for(FSItem* item in self.selectedItems)
[[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[ item.url ]];
}
- (NSString*)parentForNewFolder