use nil for blank tooltips

This commit is contained in:
Mitchell Livingston 2007-09-15 20:34:30 +00:00
parent 79656bcf26
commit b74cfa9358
1 changed files with 3 additions and 5 deletions

View File

@ -178,7 +178,7 @@
[fPexCheck setEnabled: NO];
[fPexCheck setState: NSOffState];
[fPexCheck setToolTip: @""];
[fPexCheck setToolTip: nil];
}
[fImageView setImage: fAppIcon];
@ -481,11 +481,9 @@
if ([fTorrents count] == 0)
return;
Torrent * torrent;
//get bandwidth info
NSEnumerator * enumerator = [fTorrents objectEnumerator];
torrent = [enumerator nextObject]; //first torrent
Torrent * torrent = [enumerator nextObject]; //first torrent
int uploadSpeedMode = [torrent speedMode: YES],
uploadSpeedLimit = [torrent speedLimit: YES],
@ -601,7 +599,7 @@
[fPexCheck setEnabled: pexEnabled];
[fPexCheck setState: pexState];
[fPexCheck setToolTip: !pexEnabled ? NSLocalizedString(@"PEX can only be toggled on paused public torrents.",
"Inspector -> pex check") : @""];
"Inspector -> pex check") : nil];
}
- (BOOL) validateMenuItem: (NSMenuItem *) menuItem