tooltip for hash string

This commit is contained in:
Mitchell Livingston 2006-06-20 02:57:48 +00:00
parent db26a7e23a
commit a51b62ac73
2 changed files with 6 additions and 2 deletions

View File

@ -130,6 +130,7 @@
[fPieceSizeField setStringValue: @""];
[fPiecesField setStringValue: @""];
[fHashField setStringValue: @""];
[fHashField setToolTip: nil];
[fTorrentLocationField setStringValue: @""];
[fTorrentLocationField setToolTip: nil];
@ -160,14 +161,17 @@
[fNameField setToolTip: name];
[fSizeField setStringValue: [NSString stringForFileSize: [torrent size]]];
NSString * tracker = [torrent tracker], * announce = [torrent announce];
NSString * tracker = [torrent tracker],
* announce = [torrent announce],
* hashString = [torrent hashString];
[fTrackerField setStringValue: tracker];
[fTrackerField setToolTip: tracker];
[fAnnounceField setStringValue: announce];
[fAnnounceField setToolTip: announce];
[fPieceSizeField setStringValue: [NSString stringForFileSize: [torrent pieceSize]]];
[fPiecesField setIntValue: [torrent pieceCount]];
[fHashField setStringValue: [torrent hashString]];
[fHashField setStringValue: hashString];
[fHashField setToolTip: hashString];
[fTorrentLocationField setStringValue: [[torrent torrentLocationString]
stringByAbbreviatingWithTildeInPath]];