#2370 On 10.6, revaling files in Finder will select multiple files in the same directory

This commit is contained in:
Mitchell Livingston
2009-08-30 17:50:05 +00:00
parent a32cdcc255
commit 912d76dee4
5 changed files with 49 additions and 13 deletions

View File

@@ -1178,7 +1178,16 @@ typedef enum
- (void) revealDataFile: (id) sender
{
if ([fTorrents count] > 0)
[[fTorrents objectAtIndex: 0] revealData];
{
Torrent * torrent = [fTorrents objectAtIndex: 0];
if ([NSApp isOnSnowLeopardOrBetter])
{
NSURL * file = [NSURL fileURLWithPath: [torrent dataLocation]];
[[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: [NSArray arrayWithObject: file]];
}
else
[[NSWorkspace sharedWorkspace] selectFile: [torrent dataLocation] inFileViewerRootedAtPath: nil];
}
}
- (void) setFileFilterText: (id) sender