Changeset 6980
- Timestamp:
- Oct 29, 2008, 2:33:20 AM (12 years ago)
- Location:
- trunk/macosx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r6958 r6980 2354 2354 - (void) autoSpeedLimitChange: (NSNotification *) notification 2355 2355 { 2356 //clear timer here in case it s not being reset2356 //clear timer here in case it's not being reset 2357 2357 [fSpeedLimitTimer invalidate]; 2358 2358 fSpeedLimitTimer = nil; -
trunk/macosx/NSMenuAdditions.m
r6889 r6980 29 29 - (void) appendItemsFromMenu: (NSMenu *) menu atIndexes: (NSIndexSet *) indexes atBottom: (BOOL) bottom 30 30 { 31 intbottomIndex = bottom ? [self numberOfItems] : 0;31 NSInteger bottomIndex = bottom ? [self numberOfItems] : 0; 32 32 33 33 NSMenuItem * item; -
trunk/macosx/PeerProgressIndicatorCell.m
r5349 r6980 46 46 { 47 47 if (!fAttributes) 48 fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: [NSFont systemFontOfSize: 11.0 ], NSFontAttributeName, nil];49 [[NSString localizedStringWithFormat: @"%.1f%%", [self floatValue] * 100.0 ] drawInRect: cellFrame withAttributes: fAttributes];48 fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: [NSFont systemFontOfSize: 11.0f], NSFontAttributeName, nil]; 49 [[NSString localizedStringWithFormat: @"%.1f%%", [self floatValue] * 100.0f] drawInRect: cellFrame withAttributes: fAttributes]; 50 50 } 51 51 else … … 59 59 60 60 [super drawWithFrame: cellFrame inView: controlView]; 61 if ([self floatValue] >= 1.0 )61 if ([self floatValue] >= 1.0f) 62 62 { 63 63 NSImage * checkImage = [NSImage imageNamed: @"CompleteCheck.png"]; … … 65 65 66 66 NSSize imageSize = [checkImage size]; 67 NSRect rect = NSMakeRect(cellFrame.origin.x + (cellFrame.size.width - imageSize.width) * 0.5 ,68 cellFrame.origin.y + (cellFrame.size.height - imageSize.height) * 0.5 , imageSize.width, imageSize.height);69 [checkImage drawInRect: rect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0 ];67 NSRect rect = NSMakeRect(cellFrame.origin.x + (cellFrame.size.width - imageSize.width) * 0.5f, 68 cellFrame.origin.y + (cellFrame.size.height - imageSize.height) * 0.5f, imageSize.width, imageSize.height); 69 [checkImage drawInRect: rect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0f]; 70 70 } 71 71 } -
trunk/macosx/TorrentGroup.m
r6974 r6980 71 71 - (CGFloat) uploadRate 72 72 { 73 float rate = 0.0f;73 CGFloat rate = 0.0f; 74 74 NSEnumerator * enumerator = [fTorrents objectEnumerator]; 75 75 Torrent * torrent; … … 82 82 - (CGFloat) downloadRate 83 83 { 84 float rate = 0.0f;84 CGFloat rate = 0.0f; 85 85 NSEnumerator * enumerator = [fTorrents objectEnumerator]; 86 86 Torrent * torrent; -
trunk/macosx/TorrentTableView.m
r6979 r6980 31 31 #import "NSApplicationAdditions.h" 32 32 33 #define MAX_GROUP (INT_MAX-10)33 #define MAX_GROUP 999999 34 34 35 35 #define ACTION_MENU_GLOBAL_TAG 101
Note: See TracChangeset
for help on using the changeset viewer.