Changeset 10131
- Timestamp:
- Feb 7, 2010, 5:37:01 PM (12 years ago)
- Location:
- trunk/macosx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/FileOutlineView.h
r9844 r10131 33 33 NSGradient * fHighPriorityGradient, * fLowPriorityGradient, * fMixedPriorityGradient; 34 34 35 intfMouseRow;35 NSInteger fMouseRow; 36 36 } 37 37 … … 41 41 - (NSRect) iconRectForRow: (int) row; 42 42 43 - ( int) hoveredRow;43 - (NSInteger) hoveredRow; 44 44 45 45 @end -
trunk/macosx/FileOutlineView.m
r10116 r10131 106 106 - (NSMenu *) menuForEvent: (NSEvent *) event 107 107 { 108 introw = [self rowAtPoint: [self convertPoint: [event locationInWindow] fromView: nil]];108 const NSInteger row = [self rowAtPoint: [self convertPoint: [event locationInWindow] fromView: nil]]; 109 109 110 110 if (row >= 0) … … 124 124 NSRect iconRect = [cell imageRectForBounds: [self rectOfRow: row]]; 125 125 126 iconRect.origin.x += [self indentationPerLevel] * ( float)([self levelForRow: row] + 1);126 iconRect.origin.x += [self indentationPerLevel] * (CGFloat)([self levelForRow: row] + 1); 127 127 return iconRect; 128 128 } … … 154 154 } 155 155 156 - ( int) hoveredRow156 - (NSInteger) hoveredRow 157 157 { 158 158 return fMouseRow; … … 192 192 193 193 NSSet * priorities = [fTorrent filePrioritiesForIndexes: indexes]; 194 intcount = [priorities count];194 const NSUInteger count = [priorities count]; 195 195 if (count == 1) 196 196 { -
trunk/macosx/InfoWindowController.m
r10125 r10131 1566 1566 for (Torrent * torrent in fTorrents) 1567 1567 { 1568 [fPeers addObjectsFromArray: [torrent peers]];1569 [fWebSeeds addObjectsFromArray: [torrent webSeeds]];1568 if ([torrent webSeedCount] > 0) 1569 [fWebSeeds addObjectsFromArray: [torrent webSeeds]]; 1570 1570 1571 1571 known += [torrent totalPeersKnown]; … … 1574 1574 { 1575 1575 anyActive = YES; 1576 [fPeers addObjectsFromArray: [torrent peers]]; 1577 1576 1578 const NSUInteger connectedThis = [torrent totalPeersConnected]; 1577 1579 if (connectedThis > 0) … … 1650 1652 activeString = NSLocalizedString(@"Transfers Not Active", "Inspector -> Peers tab -> peers"); 1651 1653 1652 NSString * connectedText = [ NSString stringWithFormat: @"%@\n%@", activeString, knownString];1654 NSString * connectedText = [activeString stringByAppendingFormat: @"\n%@", knownString]; 1653 1655 [fConnectedPeersField setStringValue: connectedText]; 1654 1656 } -
trunk/macosx/Torrent.m
r10126 r10131 893 893 NSMutableArray * webSeeds = [NSMutableArray arrayWithCapacity: fInfo->webseedCount]; 894 894 895 if (fInfo->webseedCount > 0) 896 { 897 float * dlSpeeds = tr_torrentWebSpeeds(fHandle); 898 899 for (NSInteger i = 0; i < fInfo->webseedCount; i++) 900 { 901 NSMutableDictionary * dict = [NSMutableDictionary dictionaryWithCapacity: 3]; 902 903 [dict setObject: [self name] forKey: @"Name"]; 904 [dict setObject: [NSString stringWithUTF8String: fInfo->webseeds[i]] forKey: @"Address"]; 905 906 if (dlSpeeds[i] != -1.0) 907 [dict setObject: [NSNumber numberWithFloat: dlSpeeds[i]] forKey: @"DL From Rate"]; 908 909 [webSeeds addObject: dict]; 910 } 911 912 tr_free(dlSpeeds); 913 } 895 float * dlSpeeds = tr_torrentWebSpeeds(fHandle); 896 897 for (NSInteger i = 0; i < fInfo->webseedCount; i++) 898 { 899 NSMutableDictionary * dict = [NSMutableDictionary dictionaryWithCapacity: 3]; 900 901 [dict setObject: [self name] forKey: @"Name"]; 902 [dict setObject: [NSString stringWithUTF8String: fInfo->webseeds[i]] forKey: @"Address"]; 903 904 if (dlSpeeds[i] != -1.0) 905 [dict setObject: [NSNumber numberWithFloat: dlSpeeds[i]] forKey: @"DL From Rate"]; 906 907 [webSeeds addObject: dict]; 908 } 909 910 tr_free(dlSpeeds); 914 911 915 912 return webSeeds;
Note: See TracChangeset
for help on using the changeset viewer.