Changeset 806


Ignore:
Timestamp:
Aug 21, 2006, 4:28:49 PM (15 years ago)
Author:
livings124
Message:

See exact number of bytes in tooltip over file size in file table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r805 r806  
    501501        row: (int) row mouseLocation: (NSPoint) mouseLocation
    502502{
    503     return tableView == fFileTable ? [[fFiles objectAtIndex: row] objectForKey: @"Name"] : nil;
     503    if (tableView == fFileTable)
     504    {
     505        NSDictionary * file = [fFiles objectAtIndex: row];
     506        if ([[column identifier] isEqualToString: @"Size"])
     507            return [[[file objectForKey: @"Size"] stringValue] stringByAppendingString: @" bytes"];
     508        else
     509            return [file objectForKey: @"Name"];
     510    }
     511    else
     512        return nil;
    504513}
    505514
Note: See TracChangeset for help on using the changeset viewer.