Multiple selection.

This commit is contained in:
Mitchell Livingston 2006-06-15 05:44:01 +00:00
parent 78753134fa
commit f954b45699
2 changed files with 4 additions and 2 deletions

View File

@ -367,8 +367,10 @@
- (void) revealFile: (id) sender
{
if ([fFileTable numberOfSelectedRows] > 0)
[[NSWorkspace sharedWorkspace] selectFile: [fFiles objectAtIndex: [fFileTable selectedRow]]
NSIndexSet * indexSet = [fFileTable selectedRowIndexes];
unsigned int i;
for (i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
[[NSWorkspace sharedWorkspace] selectFile: [fFiles objectAtIndex: i]
inFileViewerRootedAtPath: nil];
}