Changeset 3064
- Timestamp:
- Sep 14, 2007, 2:49:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/InfoWindowController.m
r3063 r3064 64 64 @implementation InfoWindowController 65 65 66 - (id) initWithWindowNibName: (NSString *) name67 {68 if ((self = [super initWithWindowNibName: name]))69 {70 fAppIcon = [NSImage imageNamed: @"NSApplicationIcon"];71 fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];72 fDotRed = [NSImage imageNamed: @"RedDot.tiff"];73 }74 return self;75 }76 77 66 - (void) awakeFromNib 78 67 { 68 //get images 69 fAppIcon = [NSImage imageNamed: @"NSApplicationIcon"]; 70 fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"]; 71 fDotRed = [NSImage imageNamed: @"RedDot.tiff"]; 72 79 73 //window location and size 80 74 NSPanel * window = (NSPanel *)[self window]; … … 874 868 { 875 869 NSDictionary * peer = [fPeers objectAtIndex: row]; 876 BOOL connected = [[peer objectForKey: @"Connected"] boolValue]; 877 878 NSMutableArray * components = [NSMutableArray arrayWithCapacity: connected ? 4 : 2]; 879 880 if (connected) 870 NSMutableArray * components = [NSMutableArray arrayWithCapacity: 4]; 871 872 if ([[peer objectForKey: @"Connected"] boolValue]) 873 { 881 874 [components addObject: [NSString stringWithFormat: 882 875 NSLocalizedString(@"Progress: %.1f%%", "Inspector -> Peers tab -> table row tooltip"), 883 876 [[peer objectForKey: @"Progress"] floatValue] * 100.0]]; 877 878 /*if ([[peer objectForKey: @"Encryption"] boolValue]) 879 [components addObject: NSLocalizedString(@"Encrypted Connection", "Inspector -> Peers tab -> table row tooltip")];*/ 880 } 884 881 885 882 int port; … … 899 896 else 900 897 [components addObject: NSLocalizedString(@"From: tracker", "Inspector -> Peers tab -> table row tooltip")]; 901 902 /*if (connected && [[peer objectForKey: @"Encryption"] boolValue])903 [components addObject: @"Encrypted Connection"];*/904 898 905 899 return [components componentsJoinedByString: @"\n"];
Note: See TracChangeset
for help on using the changeset viewer.