Changeset 7017
- Timestamp:
- Nov 2, 2008, 1:52:45 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Transmission.xcodeproj/project.pbxproj
r7013 r7017 2212 2212 isa = XCBuildConfiguration; 2213 2213 buildSettings = { 2214 ARCHS = "$(NATIVE_ARCH)"; 2214 2215 COPY_PHASE_STRIP = NO; 2215 2216 DEBUG_INFORMATION_FORMAT = dwarf; … … 2220 2221 GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 2221 2222 GCC_INCREASE_PRECOMPILED_HEADER_SHARING = YES; 2223 GCC_MODEL_PPC64 = NO; 2222 2224 GCC_OPTIMIZATION_LEVEL = 0; 2223 2225 GCC_PRECOMPILE_PREFIX_HEADER = YES; … … 2351 2353 isa = XCBuildConfiguration; 2352 2354 buildSettings = { 2353 ARCHS = ( 2354 ppc, 2355 i386, 2356 ); 2355 ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 2357 2356 DEBUG_INFORMATION_FORMAT = dwarf; 2358 2357 DEPLOYMENT_POSTPROCESSING = YES; … … 2388 2387 isa = XCBuildConfiguration; 2389 2388 buildSettings = { 2390 ARCHS = ( 2391 ppc, 2392 i386, 2393 ); 2389 ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 2394 2390 COPY_PHASE_STRIP = NO; 2395 2391 DEBUG_INFORMATION_FORMAT = dwarf; -
trunk/macosx/Controller.h
r7013 r7017 131 131 - (void) openURLShowSheet: (id) sender; 132 132 133 - (void) quitSheetDidEnd: (NSWindow *) sheet returnCode: ( int) returnCode contextInfo: (void *) contextInfo;133 - (void) quitSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo; 134 134 135 135 - (void) createFile: (id) sender; … … 149 149 - (void) removeTorrents: (NSArray *) torrents 150 150 deleteData: (BOOL) deleteData deleteTorrent: (BOOL) deleteData; 151 - (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: ( int) returnCode151 - (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode 152 152 contextInfo: (NSDictionary *) dict; 153 153 - (void) confirmRemoveTorrents: (NSArray *) torrents deleteData: (BOOL) deleteData deleteTorrent: (BOOL) deleteTorrent; … … 159 159 - (void) moveDataFilesSelected: (id) sender; 160 160 - (void) moveDataFiles: (NSArray *) torrents; 161 - (void) moveDataFileChoiceClosed: (NSOpenPanel *) panel returnCode: ( int) code contextInfo: (NSArray *) torrents;161 - (void) moveDataFileChoiceClosed: (NSOpenPanel *) panel returnCode: (NSInteger) code contextInfo: (NSArray *) torrents; 162 162 163 163 - (void) copyTorrentFiles: (id) sender; … … 188 188 189 189 - (void) updateTorrentsInQueue; 190 - ( int) numToStartFromQueue: (BOOL) downloadQueue;190 - (NSInteger) numToStartFromQueue: (BOOL) downloadQueue; 191 191 192 192 - (void) torrentFinishedDownloading: (NSNotification *) notification; -
trunk/macosx/Controller.m
r7016 r7017 534 534 if (!fUpdateInProgress && [fDefaults boolForKey: @"CheckQuit"]) 535 535 { 536 intactive = 0, downloading = 0;536 NSInteger active = 0, downloading = 0; 537 537 Torrent * torrent; 538 538 NSEnumerator * enumerator = [fTorrents objectEnumerator]; … … 564 564 } 565 565 566 - (void) quitSheetDidEnd: (NSWindow *) sheet returnCode: ( int) returnCode contextInfo: (void *) contextInfo566 - (void) quitSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo 567 567 { 568 568 [NSApp replyToApplicationShouldTerminate: returnCode == NSAlertDefaultReturn]; … … 891 891 } 892 892 893 - (void) incompleteChoiceClosed: (NSOpenPanel *) openPanel returnCode: ( int) code contextInfo: (NSDictionary *) dictionary893 - (void) incompleteChoiceClosed: (NSOpenPanel *) openPanel returnCode: (NSInteger) code contextInfo: (NSDictionary *) dictionary 894 894 { 895 895 if (code == NSOKButton) … … 901 901 } 902 902 903 - (void) downloadChoiceClosed: (NSOpenPanel *) openPanel returnCode: ( int) code contextInfo: (NSDictionary *) dictionary903 - (void) downloadChoiceClosed: (NSOpenPanel *) openPanel returnCode: (NSInteger) code contextInfo: (NSDictionary *) dictionary 904 904 { 905 905 if (code == NSOKButton) … … 940 940 } 941 941 942 - (void) openSheetClosed: (NSOpenPanel *) panel returnCode: ( int) code contextInfo: (NSNumber *) useOptions942 - (void) openSheetClosed: (NSOpenPanel *) panel returnCode: (NSInteger) code contextInfo: (NSNumber *) useOptions 943 943 { 944 944 if (code == NSOKButton) … … 1044 1044 } 1045 1045 1046 - (void) urlSheetDidEnd: (NSWindow *) sheet returnCode: ( int) returnCode contextInfo: (void *) contextInfo1046 - (void) urlSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo 1047 1047 { 1048 1048 [fURLSheetTextField selectText: self]; … … 1055 1055 if ([urlString rangeOfString: @"."].location == NSNotFound) 1056 1056 { 1057 intbeforeCom;1057 NSInteger beforeCom; 1058 1058 if ((beforeCom = [urlString rangeOfString: @"/"].location) != NSNotFound) 1059 1059 urlString = [NSString stringWithFormat: @"http://www.%@.com/%@", … … 1155 1155 { 1156 1156 [torrents retain]; 1157 intactive = 0, downloading = 0;1157 NSInteger active = 0, downloading = 0; 1158 1158 1159 1159 if ([fDefaults boolForKey: @"CheckRemove"]) … … 1178 1178 NSString * title, * message; 1179 1179 1180 intselected = [torrents count];1180 NSInteger selected = [torrents count]; 1181 1181 if (selected == 1) 1182 1182 { … … 1244 1244 } 1245 1245 1246 - (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: ( int) returnCode contextInfo: (NSDictionary *) dict1246 - (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (NSDictionary *) dict 1247 1247 { 1248 1248 NSArray * torrents = [dict objectForKey: @"Torrents"]; … … 1267 1267 1268 1268 //for tiger - when 10.5-only repace with NSIntegerMax 1269 intlowestOrderValue = INT_MAX;1269 NSInteger lowestOrderValue = INT_MAX; 1270 1270 enumerator = [torrents objectEnumerator]; 1271 1271 while ((torrent = [enumerator nextObject])) … … 1289 1289 if (lowestOrderValue < [fTorrents count]) 1290 1290 { 1291 for ( inti = lowestOrderValue; i < [fTorrents count]; i++)1291 for (NSInteger i = lowestOrderValue; i < [fTorrents count]; i++) 1292 1292 [[fTorrents objectAtIndex: i] setOrderValue: i]; 1293 1293 } … … 1333 1333 1334 1334 torrents = [torrents retain]; 1335 intcount = [torrents count];1335 NSInteger count = [torrents count]; 1336 1336 if (count == 1) 1337 1337 [panel setMessage: [NSString stringWithFormat: NSLocalizedString(@"Select the new folder for \"%@\".", … … 1345 1345 } 1346 1346 1347 - (void) moveDataFileChoiceClosed: (NSOpenPanel *) panel returnCode: ( int) code contextInfo: (NSArray *) torrents1347 - (void) moveDataFileChoiceClosed: (NSOpenPanel *) panel returnCode: (NSInteger) code contextInfo: (NSArray *) torrents 1348 1348 { 1349 1349 if (code == NSOKButton) … … 1402 1402 } 1403 1403 1404 - (void) saveTorrentCopySheetClosed: (NSSavePanel *) panel returnCode: ( int) code contextInfo: (NSMutableArray *) torrents1404 - (void) saveTorrentCopySheetClosed: (NSSavePanel *) panel returnCode: (NSInteger) code contextInfo: (NSMutableArray *) torrents 1405 1405 { 1406 1406 //copy torrent to new location with name of data file … … 1571 1571 statusFrame.size.width -= 25.0; 1572 1572 1573 float difference = NSMaxX(statusFrame) + 5.0 - [fTotalDLImageView frame].origin.x;1573 CGFloat difference = NSMaxX(statusFrame) + 5.0 - [fTotalDLImageView frame].origin.x; 1574 1574 if (difference > 0) 1575 1575 statusFrame.size.width -= difference; … … 1581 1581 { 1582 1582 NSString * totalTorrentsString; 1583 inttotalCount = [fTorrents count];1583 NSInteger totalCount = [fTorrents count]; 1584 1584 if (totalCount != 1) 1585 1585 totalTorrentsString = [NSString stringWithFormat: NSLocalizedString(@"%d transfers", "Status bar transfer count"), totalCount]; … … 1589 1589 if (filtering) 1590 1590 { 1591 intcount = [fTableView numberOfRows]; //have to factor in collapsed rows1591 NSInteger count = [fTableView numberOfRows]; //have to factor in collapsed rows 1592 1592 if (count > 0 && ![[fDisplayedTorrents objectAtIndex: 0] isKindOfClass: [Torrent class]]) 1593 1593 count -= [fDisplayedTorrents count]; … … 1605 1605 seed = [fDefaults boolForKey: @"QueueSeed"]; 1606 1606 1607 intdesiredDownloadActive = [self numToStartFromQueue: YES],1607 NSInteger desiredDownloadActive = [self numToStartFromQueue: YES], 1608 1608 desiredSeedActive = [self numToStartFromQueue: NO]; 1609 1609 … … 1642 1642 } 1643 1643 1644 - ( int) numToStartFromQueue: (BOOL) downloadQueue1644 - (NSInteger) numToStartFromQueue: (BOOL) downloadQueue 1645 1645 { 1646 1646 if (![fDefaults boolForKey: downloadQueue ? @"Queue" : @"QueueSeed"]) 1647 1647 return 0; 1648 1648 1649 intdesired = [fDefaults integerForKey: downloadQueue ? @"QueueDownloadNumber" : @"QueueSeedNumber"];1649 NSInteger desired = [fDefaults integerForKey: downloadQueue ? @"QueueDownloadNumber" : @"QueueSeedNumber"]; 1650 1650 1651 1651 Torrent * torrent; … … 1940 1940 NSArray * selectedValues = [fTableView selectedValues]; 1941 1941 1942 intactive = 0, downloading = 0, seeding = 0, paused = 0;1942 NSInteger active = 0, downloading = 0, seeding = 0, paused = 0; 1943 1943 NSString * filterType = [fDefaults stringForKey: @"Filter"]; 1944 1944 BOOL filterActive = NO, filterDownload = NO, filterSeed = NO, filterPause = NO, filterStatus = YES; … … 1954 1954 filterStatus = NO; 1955 1955 1956 intgroupFilterValue = [fDefaults integerForKey: @"FilterGroup"];1956 NSInteger groupFilterValue = [fDefaults integerForKey: @"FilterGroup"]; 1957 1957 BOOL filterGroup = groupFilterValue != GROUP_FILTER_ALL_TAG; 1958 1958 … … 1966 1966 NSEnumerator * enumerator = [fTorrents objectEnumerator]; 1967 1967 Torrent * torrent; 1968 intindex = -1;1968 NSInteger index = -1; 1969 1969 while ((torrent = [enumerator nextObject])) 1970 1970 { … … 2062 2062 2063 2063 NSMutableArray * groupTorrents; 2064 for ( inti = 0, oldGroupValue = -2; i < [allTorrents count]; i++)2064 for (NSInteger i = 0, oldGroupValue = -2; i < [allTorrents count]; i++) 2065 2065 { 2066 2066 torrent = [allTorrents objectAtIndex: i]; 2067 intgroupValue = [torrent groupValue];2067 NSInteger groupValue = [torrent groupValue]; 2068 2068 if (groupValue != oldGroupValue) 2069 2069 { … … 2156 2156 NSString * oldFilterType = [fDefaults stringForKey: @"FilterSearchType"]; 2157 2157 2158 intprevTag, currentTag = [sender tag];2158 NSInteger prevTag, currentTag = [sender tag]; 2159 2159 if ([oldFilterType isEqualToString: FILTER_TYPE_TRACKER]) 2160 2160 prevTag = FILTER_TYPE_TAG_TRACKER; … … 2233 2233 if (menu == fGroupsSetMenu || menu == fGroupsSetContextMenu) 2234 2234 { 2235 for ( inti = [menu numberOfItems]-1 - 2; i >= 0; i--)2235 for (NSInteger i = [menu numberOfItems]-1 - 2; i >= 0; i--) 2236 2236 [menu removeItemAtIndex: i]; 2237 2237 … … 2242 2242 else if (menu == fGroupFilterMenu) 2243 2243 { 2244 for ( inti = [menu numberOfItems]-1; i >= 3; i--)2244 for (NSInteger i = [menu numberOfItems]-1; i >= 3; i--) 2245 2245 [menu removeItemAtIndex: i]; 2246 2246 … … 2255 2255 return; 2256 2256 2257 const intspeedLimitActionValue[] = { 5, 10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500, 750, -1 };2257 const NSInteger speedLimitActionValue[] = { 5, 10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500, 750, -1 }; 2258 2258 2259 2259 NSMenuItem * item; 2260 for ( inti = 0; speedLimitActionValue[i] != -1; i++)2260 for (NSInteger i = 0; speedLimitActionValue[i] != -1; i++) 2261 2261 { 2262 2262 item = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: NSLocalizedString(@"%d KB/s", … … 2277 2277 2278 2278 NSMenuItem * item; 2279 for ( inti = 0; ratioLimitActionValue[i] != -1; i++)2279 for (NSInteger i = 0; ratioLimitActionValue[i] != -1; i++) 2280 2280 { 2281 2281 item = [[NSMenuItem alloc] initWithTitle: [NSString localizedStringWithFormat: @"%.2f", ratioLimitActionValue[i]] … … 2315 2315 - (void) updateGroupsFilterButton 2316 2316 { 2317 intgroupIndex = [fDefaults integerForKey: @"FilterGroup"];2317 NSInteger groupIndex = [fDefaults integerForKey: @"FilterGroup"]; 2318 2318 2319 2319 NSImage * icon; … … 2373 2373 2374 2374 //check if should be on if within range 2375 intonTime = [onComponents hour] * 60 + [onComponents minute],2375 NSInteger onTime = [onComponents hour] * 60 + [onComponents minute], 2376 2376 offTime = [offComponents hour] * 60 + [offComponents minute], 2377 2377 nowTime = [nowComponents hour] * 60 + [nowComponents minute]; … … 2424 2424 2425 2425 //check if should be the next day 2426 intnowTime = [nowComponents hour] * 60 + [nowComponents minute],2426 NSInteger nowTime = [nowComponents hour] * 60 + [nowComponents minute], 2427 2427 timerTime = [timerComponents hour] * 60 + [timerComponents minute]; 2428 2428 if (timerTime < nowTime) … … 2545 2545 2546 2546 NSString * file; 2547 for ( inti = [newNames count] - 1; i >= 0; i--)2547 for (NSInteger i = [newNames count] - 1; i >= 0; i--) 2548 2548 { 2549 2549 file = [newNames objectAtIndex: i]; … … 2624 2624 if ([ident isEqualToString: @"Group"]) 2625 2625 { 2626 intgroup = [item groupIndex];2626 NSInteger group = [item groupIndex]; 2627 2627 return group != -1 ? [[GroupsController groups] nameForIndex: group] 2628 2628 : NSLocalizedString(@"No Group", "Group table row"); … … 2630 2630 else if ([ident isEqualToString: @"Color"]) 2631 2631 { 2632 intgroup = [item groupIndex];2632 NSInteger group = [item groupIndex]; 2633 2633 return [[GroupsController groups] imageForIndex: group]; 2634 2634 } … … 2646 2646 else 2647 2647 { 2648 float rate = [ident isEqualToString: @"UL"] ? [group uploadRate] : [group downloadRate];2648 CGFloat rate = [ident isEqualToString: @"UL"] ? [group uploadRate] : [group downloadRate]; 2649 2649 return [NSString stringForSpeed: rate]; 2650 2650 } … … 2733 2733 //get the torrents to move 2734 2734 NSMutableArray * movingTorrents = [NSMutableArray arrayWithCapacity: [indexes count]]; 2735 for ( inti = [indexes firstIndex]; i != NSNotFound; i = [indexes indexGreaterThanIndex: i])2735 for (NSUInteger i = [indexes firstIndex]; i != NSNotFound; i = [indexes indexGreaterThanIndex: i]) 2736 2736 [movingTorrents addObject: [fTableView itemAtRow: i]]; 2737 2737 … … 2740 2740 { 2741 2741 //change groups 2742 intgroupValue = [item groupIndex];2742 NSInteger groupValue = [item groupIndex]; 2743 2743 NSEnumerator * enumerator = [movingTorrents objectEnumerator]; 2744 2744 Torrent * torrent; … … 2761 2761 NSArray * groupTorrents = item ? [item torrents] : fDisplayedTorrents; 2762 2762 Torrent * topTorrent = nil; 2763 for ( inti = newRow-1; i >= 0; i--)2763 for (NSInteger i = newRow-1; i >= 0; i--) 2764 2764 { 2765 2765 Torrent * tempTorrent = [groupTorrents objectAtIndex: i]; … … 2780 2780 2781 2781 //redo order values 2782 for ( inti = 0; i < [fTorrents count]; i++)2782 for (NSInteger i = 0; i < [fTorrents count]; i++) 2783 2783 [[fTorrents objectAtIndex: i] setOrderValue: i]; 2784 2784 } … … 2943 2943 { 2944 2944 NSRect frame = [fWindow frame]; 2945 float heightChange = contentMinSize.height - contentSize.height;2945 CGFloat heightChange = contentMinSize.height - contentSize.height; 2946 2946 frame.size.height += heightChange; 2947 2947 frame.origin.y -= heightChange; … … 2976 2976 } 2977 2977 2978 - (NSRect) windowFrameByAddingHeight: ( float) height checkLimits: (BOOL) check2978 - (NSRect) windowFrameByAddingHeight: (CGFloat) height checkLimits: (BOOL) check 2979 2979 { 2980 2980 NSScrollView * scrollView = [fTableView enclosingScrollView]; … … 3027 3027 3028 3028 NSRect frame; 3029 float heightChange = [fStatusBar frame].size.height;3029 CGFloat heightChange = [fStatusBar frame].size.height; 3030 3030 if (!show) 3031 3031 heightChange *= -1; … … 3035 3035 { 3036 3036 frame = [self windowFrameByAddingHeight: heightChange checkLimits: NO]; 3037 float change = [[fWindow screen] visibleFrame].size.height - frame.size.height;3037 CGFloat change = [[fWindow screen] visibleFrame].size.height - frame.size.height; 3038 3038 if (change < 0.0) 3039 3039 { … … 3050 3050 3051 3051 //set views to not autoresize 3052 unsigned intstatsMask = [fStatusBar autoresizingMask];3053 unsigned intfilterMask = [fFilterBar autoresizingMask];3054 unsigned intscrollMask = [scrollView autoresizingMask];3052 NSUInteger statsMask = [fStatusBar autoresizingMask]; 3053 NSUInteger filterMask = [fFilterBar autoresizingMask]; 3054 NSUInteger scrollMask = [scrollView autoresizingMask]; 3055 3055 [fStatusBar setAutoresizingMask: NSViewNotSizable]; 3056 3056 [fFilterBar setAutoresizingMask: NSViewNotSizable]; … … 3098 3098 3099 3099 NSRect frame; 3100 float heightChange = [fFilterBar frame].size.height;3100 CGFloat heightChange = [fFilterBar frame].size.height; 3101 3101 if (!show) 3102 3102 heightChange *= -1; … … 3106 3106 { 3107 3107 frame = [self windowFrameByAddingHeight: heightChange checkLimits: NO]; 3108 float change = [[fWindow screen] visibleFrame].size.height - frame.size.height;3108 CGFloat change = [[fWindow screen] visibleFrame].size.height - frame.size.height; 3109 3109 if (change < 0.0) 3110 3110 { … … 3119 3119 3120 3120 //set views to not autoresize 3121 unsigned intfilterMask = [fFilterBar autoresizingMask];3122 unsigned intscrollMask = [scrollView autoresizingMask];3121 NSUInteger filterMask = [fFilterBar autoresizingMask]; 3122 NSUInteger scrollMask = [scrollView autoresizingMask]; 3123 3123 [fFilterBar setAutoresizingMask: NSViewNotSizable]; 3124 3124 [scrollView setAutoresizingMask: NSViewNotSizable]; … … 3348 3348 - (void) allToolbarClicked: (id) sender 3349 3349 { 3350 inttagValue = [sender isKindOfClass: [NSSegmentedControl class]]3350 NSInteger tagValue = [sender isKindOfClass: [NSSegmentedControl class]] 3351 3351 ? [(NSSegmentedCell *)[sender cell] tagForSegment: [sender selectedSegment]] : [sender tag]; 3352 3352 switch (tagValue) … … 3363 3363 - (void) selectedToolbarClicked: (id) sender 3364 3364 { 3365 inttagValue = [sender isKindOfClass: [NSSegmentedControl class]]3365 NSInteger tagValue = [sender isKindOfClass: [NSSegmentedControl class]] 3366 3366 ? [(NSSegmentedCell *)[sender cell] tagForSegment: [sender selectedSegment]] : [sender tag]; 3367 3367 switch (tagValue) … … 3560 3560 BOOL checked = NO; 3561 3561 3562 intindex = [menuItem tag];3562 NSInteger index = [menuItem tag]; 3563 3563 NSEnumerator * enumerator = [[fTableView selectedTorrents] objectEnumerator]; 3564 3564 Torrent * torrent; … … 3910 3910 - (NSMenu *) applicationDockMenu: (NSApplication *) sender 3911 3911 { 3912 intseeding = 0, downloading = 0;3912 NSInteger seeding = 0, downloading = 0; 3913 3913 NSEnumerator * enumerator = [fTorrents objectEnumerator]; 3914 3914 Torrent * torrent; … … 4004 4004 - (NSRect) sizedWindowFrame 4005 4005 { 4006 intgroups = ([fDisplayedTorrents count] > 0 && ![[fDisplayedTorrents objectAtIndex: 0] isKindOfClass: [Torrent class]])4006 NSInteger groups = ([fDisplayedTorrents count] > 0 && ![[fDisplayedTorrents objectAtIndex: 0] isKindOfClass: [Torrent class]]) 4007 4007 ? [fDisplayedTorrents count] : 0; 4008 4008 4009 float heightChange = (GROUP_SEPARATOR_HEIGHT + [fTableView intercellSpacing].height) * groups4009 CGFloat heightChange = (GROUP_SEPARATOR_HEIGHT + [fTableView intercellSpacing].height) * groups 4010 4010 + ([fTableView rowHeight] + [fTableView intercellSpacing].height) * ([fTableView numberOfRows] - groups) 4011 4011 - [[fTableView enclosingScrollView] frame].size.height; … … 4081 4081 4082 4082 //resize the buttons so they don't overlay 4083 intdifference = (NSMaxX(pauseRect) + 5.0) - searchFrame.origin.x - 1; //subtract 1, since 0 will be counted4083 NSInteger difference = (NSMaxX(pauseRect) + 5.0) - searchFrame.origin.x - 1; //subtract 1, since 0 will be counted 4084 4084 4085 4085 //decrease downloading by 8, seeding by 1, paused by 1, active by 1, repeat 4086 intdownload = (difference / 11 * 8) + MIN(difference % 11 + 1, 8); //8 for every 114087 intseed = (difference / 11) + (difference % 11 >= 8 ? 1 : 0);4088 intpaused = (difference / 11) + (difference % 11 >= 9 ? 1 : 0);4089 intactive = (difference / 11) + (difference % 11 >= 10 ? 1 : 0);4086 NSInteger download = (difference / 11 * 8) + MIN(difference % 11 + 1, 8); //8 for every 11 4087 NSInteger seed = (difference / 11) + (difference % 11 >= 8 ? 1 : 0); 4088 NSInteger paused = (difference / 11) + (difference % 11 >= 9 ? 1 : 0); 4089 NSInteger active = (difference / 11) + (difference % 11 >= 10 ? 1 : 0); 4090 4090 4091 4091 activeRect.size.width -= active; … … 4157 4157 NSRange visibleRows = [fTableView rowsInRect: [fTableView bounds]]; 4158 4158 4159 for ( introw = 0; row < NSMaxRange(visibleRows); row++)4159 for (NSInteger row = 0; row < NSMaxRange(visibleRows); row++) 4160 4160 { 4161 4161 id item = [fTableView itemAtRow: row];
Note: See TracChangeset
for help on using the changeset viewer.