missed one in the last commit

This commit is contained in:
Mitchell Livingston 2009-08-30 17:52:03 +00:00
parent 912d76dee4
commit b7570c4446
1 changed files with 7 additions and 1 deletions

View File

@ -301,7 +301,13 @@
fMouseDownRevealButton = NO;
[controlView setNeedsDisplayInRect: cellFrame];
[[self representedObject] revealData];
if ([NSApp isOnSnowLeopardOrBetter])
{
NSURL * file = [NSURL fileURLWithPath: [[self representedObject] dataLocation]];
[[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: [NSArray arrayWithObject: file]];
}
else
[[NSWorkspace sharedWorkspace] selectFile: [[self representedObject] dataLocation] inFileViewerRootedAtPath: nil];
}
else;