From 9ef1ebaf19281dac215622fd27e18aaec59fdd0f Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 21 Aug 2006 16:28:49 +0000 Subject: [PATCH] See exact number of bytes in tooltip over file size in file table. --- macosx/InfoWindowController.m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 8c173d8ba..faa2e64df 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -500,7 +500,16 @@ rect: (NSRectPointer) rect tableColumn: (NSTableColumn *) column row: (int) row mouseLocation: (NSPoint) mouseLocation { - return tableView == fFileTable ? [[fFiles objectAtIndex: row] objectForKey: @"Name"] : nil; + if (tableView == fFileTable) + { + NSDictionary * file = [fFiles objectAtIndex: row]; + if ([[column identifier] isEqualToString: @"Size"]) + return [[[file objectForKey: @"Size"] stringValue] stringByAppendingString: @" bytes"]; + else + return [file objectForKey: @"Name"]; + } + else + return nil; } - (NSArray *) peerSortDescriptors