Show checks instead of y's for DL and UL columns.

This commit is contained in:
Mitchell Livingston 2006-08-15 02:36:21 +00:00
parent e907f7a370
commit a04dac16d8
3 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,7 @@
{
NSArray * fTorrents;
NSMutableArray * fPeers, * fFiles;
NSImage * fAppIcon, * fDotGreen, * fDotRed;
NSImage * fAppIcon, * fDotGreen, * fDotRed, * fCheckImage;
IBOutlet NSTabView * fTabView;

View File

@ -58,6 +58,7 @@
fAppIcon = [[NSApp applicationIconImage] copy];
fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
fCheckImage = [NSImage imageNamed: @"NSMenuCheckmark"];
fTorrents = [[NSArray alloc] init];
fPeers = [[NSMutableArray alloc] initWithCapacity: 6];
@ -452,9 +453,9 @@
if ([ident isEqualToString: @"Connected"])
return [[peer objectForKey: @"Connected"] boolValue] ? fDotGreen : fDotRed;
else if ([ident isEqualToString: @"UL To"])
return [[peer objectForKey: @"UL To"] boolValue] ? @"Y" : @"";
return [[peer objectForKey: @"UL To"] boolValue] ? fCheckImage : nil;
else if ([ident isEqualToString: @"DL From"])
return [[peer objectForKey: @"DL From"] boolValue] ? @"Y" : @"";
return [[peer objectForKey: @"DL From"] boolValue] ? fCheckImage : nil;
else if ([ident isEqualToString: @"Client"])
return [peer objectForKey: @"Client"];
else