diff --git a/Transmission.xcodeproj/project.pbxproj b/Transmission.xcodeproj/project.pbxproj index 36be8b617..2c1a6f796 100644 --- a/Transmission.xcodeproj/project.pbxproj +++ b/Transmission.xcodeproj/project.pbxproj @@ -340,7 +340,7 @@ 4DFBC2DD09C0970D00D5C571 /* Torrent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Torrent.h; path = macosx/Torrent.h; sourceTree = ""; }; 4DFBC2DE09C0970D00D5C571 /* Torrent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Torrent.m; path = macosx/Torrent.m; sourceTree = ""; }; 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; name = Info.plist; path = macosx/Info.plist; sourceTree = ""; }; - 8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; }; A200B8390A2263BA007BBB1E /* InfoWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InfoWindowController.h; path = macosx/InfoWindowController.h; sourceTree = ""; }; A200B83A0A2263BA007BBB1E /* InfoWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = InfoWindowController.m; path = macosx/InfoWindowController.m; sourceTree = ""; }; A200B9630A227FD0007BBB1E /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = macosx/English.lproj/InfoWindow.nib; sourceTree = ""; }; diff --git a/macosx/English.lproj/MessageWindow.nib/keyedobjects.nib b/macosx/English.lproj/MessageWindow.nib/keyedobjects.nib index f1eaed5b3..2ba8b0633 100644 Binary files a/macosx/English.lproj/MessageWindow.nib/keyedobjects.nib and b/macosx/English.lproj/MessageWindow.nib/keyedobjects.nib differ diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 818a24cc3..d9bb459c8 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -820,8 +820,7 @@ return nil; } -- (void) tableView: (NSTableView *) tableView willDisplayCell: (id) cell - forTableColumn: (NSTableColumn *) tableColumn row: (int) row +- (void) tableView: (NSTableView *) tableView willDisplayCell: (id) cell forTableColumn: (NSTableColumn *) tableColumn row: (int) row { if (tableView == fPeerTable) { diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index 631ff49a8..75975f233 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -34,6 +34,7 @@ @interface MessageWindowController (Private) +- (NSString *) stringForMessage: (NSDictionary *) message; - (void) setDebugWarningHidden: (BOOL) hide; @end @@ -113,11 +114,11 @@ { int level = currentMessage->level; if (level == TR_MSG_ERR) - levelString = @"ERR"; + levelString = @"Error"; else if (level == TR_MSG_INF) - levelString = @"INF"; + levelString = @"Info"; else if (level == TR_MSG_DBG) - levelString = @"DBG"; + levelString = @"Debug"; else levelString = @"???"; @@ -127,12 +128,7 @@ unsigned int loc = [[fTextView string] rangeOfString: @"\n"].location; if (loc != NSNotFound) [[fTextView textStorage] deleteCharactersInRange: NSMakeRange(0, loc + 1)]; - } - else - fLines++; - - [[fTextView textStorage] appendAttributedString: [[[NSAttributedString alloc] initWithString: - messageString attributes: fAttributes] autorelease]];*/ + }*/ #warning remove old messages? @@ -168,6 +164,12 @@ return [message objectForKey: @"Message"]; } +- (NSString *) tableView: (NSTableView *) tableView toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect + tableColumn: (NSTableColumn *) column row: (int) row mouseLocation: (NSPoint) mouseLocation +{ + return [self stringForMessage: [fMessages objectAtIndex: row]]; +} + - (void) changeLevel: (id) sender { [self updateLog: nil]; @@ -228,6 +230,16 @@ [string release];*/ } +@end + +@implementation MessageWindowController (Private) + +- (NSString *) stringForMessage: (NSDictionary *) message +{ + return [NSString stringWithFormat: @"%@\n%@\n\n%@", [message objectForKey: @"Date"], + [message objectForKey: @"Level"], [message objectForKey: @"Message"]]; +} + - (void) setDebugWarningHidden: (BOOL) hide { [fDebugWarningField setHidden: hide];