Changeset 366


Ignore:
Timestamp:
Jun 15, 2006, 5:44:01 AM (16 years ago)
Author:
livings124
Message:

Multiple selection.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r354 r366  
    368368- (void) revealFile: (id) sender
    369369{
    370     if ([fFileTable numberOfSelectedRows] > 0)
    371         [[NSWorkspace sharedWorkspace] selectFile: [fFiles objectAtIndex: [fFileTable selectedRow]]
     370    NSIndexSet * indexSet = [fFileTable selectedRowIndexes];
     371    unsigned int i;
     372    for (i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
     373        [[NSWorkspace sharedWorkspace] selectFile: [fFiles objectAtIndex: i]
    372374            inFileViewerRootedAtPath: nil];
    373375}
Note: See TracChangeset for help on using the changeset viewer.