Changeset 7017


Ignore:
Timestamp:
Nov 2, 2008, 1:52:45 PM (12 years ago)
Author:
livings124
Message:

more type conversions

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r7013 r7017  
    22122212                        isa = XCBuildConfiguration;
    22132213                        buildSettings = {
     2214                                ARCHS = "$(NATIVE_ARCH)";
    22142215                                COPY_PHASE_STRIP = NO;
    22152216                                DEBUG_INFORMATION_FORMAT = dwarf;
     
    22202221                                GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
    22212222                                GCC_INCREASE_PRECOMPILED_HEADER_SHARING = YES;
     2223                                GCC_MODEL_PPC64 = NO;
    22222224                                GCC_OPTIMIZATION_LEVEL = 0;
    22232225                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
     
    23512353                        isa = XCBuildConfiguration;
    23522354                        buildSettings = {
    2353                                 ARCHS = (
    2354                                         ppc,
    2355                                         i386,
    2356                                 );
     2355                                ARCHS = "$(ARCHS_STANDARD_32_BIT)";
    23572356                                DEBUG_INFORMATION_FORMAT = dwarf;
    23582357                                DEPLOYMENT_POSTPROCESSING = YES;
     
    23882387                        isa = XCBuildConfiguration;
    23892388                        buildSettings = {
    2390                                 ARCHS = (
    2391                                         ppc,
    2392                                         i386,
    2393                                 );
     2389                                ARCHS = "$(ARCHS_STANDARD_32_BIT)";
    23942390                                COPY_PHASE_STRIP = NO;
    23952391                                DEBUG_INFORMATION_FORMAT = dwarf;
  • trunk/macosx/Controller.h

    r7013 r7017  
    131131- (void) openURLShowSheet:      (id) sender;
    132132
    133 - (void) quitSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode contextInfo: (void *) contextInfo;
     133- (void) quitSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo;
    134134
    135135- (void) createFile: (id) sender;
     
    149149- (void) removeTorrents: (NSArray *) torrents
    150150        deleteData: (BOOL) deleteData deleteTorrent: (BOOL) deleteData;
    151 - (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode
     151- (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode
    152152                        contextInfo: (NSDictionary *) dict;
    153153- (void) confirmRemoveTorrents: (NSArray *) torrents deleteData: (BOOL) deleteData deleteTorrent: (BOOL) deleteTorrent;
     
    159159- (void) moveDataFilesSelected: (id) sender;
    160160- (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;
    162162
    163163- (void) copyTorrentFiles: (id) sender;
     
    188188
    189189- (void) updateTorrentsInQueue;
    190 - (int) numToStartFromQueue: (BOOL) downloadQueue;
     190- (NSInteger) numToStartFromQueue: (BOOL) downloadQueue;
    191191
    192192- (void) torrentFinishedDownloading: (NSNotification *) notification;
  • trunk/macosx/Controller.m

    r7016 r7017  
    534534    if (!fUpdateInProgress && [fDefaults boolForKey: @"CheckQuit"])
    535535    {
    536         int active = 0, downloading = 0;
     536        NSInteger active = 0, downloading = 0;
    537537        Torrent * torrent;
    538538        NSEnumerator * enumerator = [fTorrents objectEnumerator];
     
    564564}
    565565
    566 - (void) quitSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode contextInfo: (void *) contextInfo
     566- (void) quitSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo
    567567{
    568568    [NSApp replyToApplicationShouldTerminate: returnCode == NSAlertDefaultReturn];
     
    891891}
    892892
    893 - (void) incompleteChoiceClosed: (NSOpenPanel *) openPanel returnCode: (int) code contextInfo: (NSDictionary *) dictionary
     893- (void) incompleteChoiceClosed: (NSOpenPanel *) openPanel returnCode: (NSInteger) code contextInfo: (NSDictionary *) dictionary
    894894{
    895895    if (code == NSOKButton)
     
    901901}
    902902
    903 - (void) downloadChoiceClosed: (NSOpenPanel *) openPanel returnCode: (int) code contextInfo: (NSDictionary *) dictionary
     903- (void) downloadChoiceClosed: (NSOpenPanel *) openPanel returnCode: (NSInteger) code contextInfo: (NSDictionary *) dictionary
    904904{
    905905    if (code == NSOKButton)
     
    940940}
    941941
    942 - (void) openSheetClosed: (NSOpenPanel *) panel returnCode: (int) code contextInfo: (NSNumber *) useOptions
     942- (void) openSheetClosed: (NSOpenPanel *) panel returnCode: (NSInteger) code contextInfo: (NSNumber *) useOptions
    943943{
    944944    if (code == NSOKButton)
     
    10441044}
    10451045
    1046 - (void) urlSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode contextInfo: (void *) contextInfo
     1046- (void) urlSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo
    10471047{
    10481048    [fURLSheetTextField selectText: self];
     
    10551055        if ([urlString rangeOfString: @"."].location == NSNotFound)
    10561056        {
    1057             int beforeCom;
     1057            NSInteger beforeCom;
    10581058            if ((beforeCom = [urlString rangeOfString: @"/"].location) != NSNotFound)
    10591059                urlString = [NSString stringWithFormat: @"http://www.%@.com/%@",
     
    11551155{
    11561156    [torrents retain];
    1157     int active = 0, downloading = 0;
     1157    NSInteger active = 0, downloading = 0;
    11581158
    11591159    if ([fDefaults boolForKey: @"CheckRemove"])
     
    11781178            NSString * title, * message;
    11791179           
    1180             int selected = [torrents count];
     1180            NSInteger selected = [torrents count];
    11811181            if (selected == 1)
    11821182            {
     
    12441244}
    12451245
    1246 - (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode contextInfo: (NSDictionary *) dict
     1246- (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (NSDictionary *) dict
    12471247{
    12481248    NSArray * torrents = [dict objectForKey: @"Torrents"];
     
    12671267   
    12681268    //for tiger - when 10.5-only repace with NSIntegerMax
    1269     int lowestOrderValue = INT_MAX;
     1269    NSInteger lowestOrderValue = INT_MAX;
    12701270    enumerator = [torrents objectEnumerator];
    12711271    while ((torrent = [enumerator nextObject]))
     
    12891289    if (lowestOrderValue < [fTorrents count])
    12901290    {
    1291         for (int i = lowestOrderValue; i < [fTorrents count]; i++)
     1291        for (NSInteger i = lowestOrderValue; i < [fTorrents count]; i++)
    12921292            [[fTorrents objectAtIndex: i] setOrderValue: i];
    12931293    }
     
    13331333   
    13341334    torrents = [torrents retain];
    1335     int count = [torrents count];
     1335    NSInteger count = [torrents count];
    13361336    if (count == 1)
    13371337        [panel setMessage: [NSString stringWithFormat: NSLocalizedString(@"Select the new folder for \"%@\".",
     
    13451345}
    13461346
    1347 - (void) moveDataFileChoiceClosed: (NSOpenPanel *) panel returnCode: (int) code contextInfo: (NSArray *) torrents
     1347- (void) moveDataFileChoiceClosed: (NSOpenPanel *) panel returnCode: (NSInteger) code contextInfo: (NSArray *) torrents
    13481348{
    13491349    if (code == NSOKButton)
     
    14021402}
    14031403
    1404 - (void) saveTorrentCopySheetClosed: (NSSavePanel *) panel returnCode: (int) code contextInfo: (NSMutableArray *) torrents
     1404- (void) saveTorrentCopySheetClosed: (NSSavePanel *) panel returnCode: (NSInteger) code contextInfo: (NSMutableArray *) torrents
    14051405{
    14061406    //copy torrent to new location with name of data file
     
    15711571    statusFrame.size.width -= 25.0;
    15721572   
    1573     float difference = NSMaxX(statusFrame) + 5.0 - [fTotalDLImageView frame].origin.x;
     1573    CGFloat difference = NSMaxX(statusFrame) + 5.0 - [fTotalDLImageView frame].origin.x;
    15741574    if (difference > 0)
    15751575        statusFrame.size.width -= difference;
     
    15811581{
    15821582    NSString * totalTorrentsString;
    1583     int totalCount = [fTorrents count];
     1583    NSInteger totalCount = [fTorrents count];
    15841584    if (totalCount != 1)
    15851585        totalTorrentsString = [NSString stringWithFormat: NSLocalizedString(@"%d transfers", "Status bar transfer count"), totalCount];
     
    15891589    if (filtering)
    15901590    {
    1591         int count = [fTableView numberOfRows]; //have to factor in collapsed rows
     1591        NSInteger count = [fTableView numberOfRows]; //have to factor in collapsed rows
    15921592        if (count > 0 && ![[fDisplayedTorrents objectAtIndex: 0] isKindOfClass: [Torrent class]])
    15931593            count -= [fDisplayedTorrents count];
     
    16051605        seed = [fDefaults boolForKey: @"QueueSeed"];
    16061606   
    1607     int desiredDownloadActive = [self numToStartFromQueue: YES],
     1607    NSInteger desiredDownloadActive = [self numToStartFromQueue: YES],
    16081608        desiredSeedActive = [self numToStartFromQueue: NO];
    16091609   
     
    16421642}
    16431643
    1644 - (int) numToStartFromQueue: (BOOL) downloadQueue
     1644- (NSInteger) numToStartFromQueue: (BOOL) downloadQueue
    16451645{
    16461646    if (![fDefaults boolForKey: downloadQueue ? @"Queue" : @"QueueSeed"])
    16471647        return 0;
    16481648   
    1649     int desired = [fDefaults integerForKey: downloadQueue ? @"QueueDownloadNumber" : @"QueueSeedNumber"];
     1649    NSInteger desired = [fDefaults integerForKey: downloadQueue ? @"QueueDownloadNumber" : @"QueueSeedNumber"];
    16501650       
    16511651    Torrent * torrent;
     
    19401940    NSArray * selectedValues = [fTableView selectedValues];
    19411941   
    1942     int active = 0, downloading = 0, seeding = 0, paused = 0;
     1942    NSInteger active = 0, downloading = 0, seeding = 0, paused = 0;
    19431943    NSString * filterType = [fDefaults stringForKey: @"Filter"];
    19441944    BOOL filterActive = NO, filterDownload = NO, filterSeed = NO, filterPause = NO, filterStatus = YES;
     
    19541954        filterStatus = NO;
    19551955   
    1956     int groupFilterValue = [fDefaults integerForKey: @"FilterGroup"];
     1956    NSInteger groupFilterValue = [fDefaults integerForKey: @"FilterGroup"];
    19571957    BOOL filterGroup = groupFilterValue != GROUP_FILTER_ALL_TAG;
    19581958   
     
    19661966    NSEnumerator * enumerator = [fTorrents objectEnumerator];
    19671967    Torrent * torrent;
    1968     int index = -1;
     1968    NSInteger index = -1;
    19691969    while ((torrent = [enumerator nextObject]))
    19701970    {
     
    20622062       
    20632063        NSMutableArray * groupTorrents;
    2064         for (int i = 0, oldGroupValue = -2; i < [allTorrents count]; i++)
     2064        for (NSInteger i = 0, oldGroupValue = -2; i < [allTorrents count]; i++)
    20652065        {
    20662066            torrent = [allTorrents objectAtIndex: i];
    2067             int groupValue = [torrent groupValue];
     2067            NSInteger groupValue = [torrent groupValue];
    20682068            if (groupValue != oldGroupValue)
    20692069            {
     
    21562156    NSString * oldFilterType = [fDefaults stringForKey: @"FilterSearchType"];
    21572157   
    2158     int prevTag, currentTag = [sender tag];
     2158    NSInteger prevTag, currentTag = [sender tag];
    21592159    if ([oldFilterType isEqualToString: FILTER_TYPE_TRACKER])
    21602160        prevTag = FILTER_TYPE_TAG_TRACKER;
     
    22332233    if (menu == fGroupsSetMenu || menu == fGroupsSetContextMenu)
    22342234    {
    2235         for (int i = [menu numberOfItems]-1 - 2; i >= 0; i--)
     2235        for (NSInteger i = [menu numberOfItems]-1 - 2; i >= 0; i--)
    22362236            [menu removeItemAtIndex: i];
    22372237       
     
    22422242    else if (menu == fGroupFilterMenu)
    22432243    {
    2244         for (int i = [menu numberOfItems]-1; i >= 3; i--)
     2244        for (NSInteger i = [menu numberOfItems]-1; i >= 3; i--)
    22452245            [menu removeItemAtIndex: i];
    22462246       
     
    22552255            return;
    22562256       
    2257         const int speedLimitActionValue[] = { 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 };
    22582258       
    22592259        NSMenuItem * item;
    2260         for (int i = 0; speedLimitActionValue[i] != -1; i++)
     2260        for (NSInteger i = 0; speedLimitActionValue[i] != -1; i++)
    22612261        {
    22622262            item = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: NSLocalizedString(@"%d KB/s",
     
    22772277       
    22782278        NSMenuItem * item;
    2279         for (int i = 0; ratioLimitActionValue[i] != -1; i++)
     2279        for (NSInteger i = 0; ratioLimitActionValue[i] != -1; i++)
    22802280        {
    22812281            item = [[NSMenuItem alloc] initWithTitle: [NSString localizedStringWithFormat: @"%.2f", ratioLimitActionValue[i]]
     
    23152315- (void) updateGroupsFilterButton
    23162316{
    2317     int groupIndex = [fDefaults integerForKey: @"FilterGroup"];
     2317    NSInteger groupIndex = [fDefaults integerForKey: @"FilterGroup"];
    23182318   
    23192319    NSImage * icon;
     
    23732373   
    23742374    //check if should be on if within range
    2375     int onTime = [onComponents hour] * 60 + [onComponents minute],
     2375    NSInteger onTime = [onComponents hour] * 60 + [onComponents minute],
    23762376        offTime = [offComponents hour] * 60 + [offComponents minute],
    23772377        nowTime = [nowComponents hour] * 60 + [nowComponents minute];
     
    24242424   
    24252425    //check if should be the next day
    2426     int nowTime = [nowComponents hour] * 60 + [nowComponents minute],
     2426    NSInteger nowTime = [nowComponents hour] * 60 + [nowComponents minute],
    24272427        timerTime = [timerComponents hour] * 60 + [timerComponents minute];
    24282428    if (timerTime < nowTime)
     
    25452545   
    25462546    NSString * file;
    2547     for (int i = [newNames count] - 1; i >= 0; i--)
     2547    for (NSInteger i = [newNames count] - 1; i >= 0; i--)
    25482548    {
    25492549        file = [newNames objectAtIndex: i];
     
    26242624        if ([ident isEqualToString: @"Group"])
    26252625        {
    2626             int group = [item groupIndex];
     2626            NSInteger group = [item groupIndex];
    26272627            return group != -1 ? [[GroupsController groups] nameForIndex: group]
    26282628                                : NSLocalizedString(@"No Group", "Group table row");
     
    26302630        else if ([ident isEqualToString: @"Color"])
    26312631        {
    2632             int group = [item groupIndex];
     2632            NSInteger group = [item groupIndex];
    26332633            return [[GroupsController groups] imageForIndex: group];
    26342634        }
     
    26462646            else
    26472647            {
    2648                 float rate = [ident isEqualToString: @"UL"] ? [group uploadRate] : [group downloadRate];
     2648                CGFloat rate = [ident isEqualToString: @"UL"] ? [group uploadRate] : [group downloadRate];
    26492649                return [NSString stringForSpeed: rate];
    26502650            }
     
    27332733        //get the torrents to move
    27342734        NSMutableArray * movingTorrents = [NSMutableArray arrayWithCapacity: [indexes count]];
    2735         for (int i = [indexes firstIndex]; i != NSNotFound; i = [indexes indexGreaterThanIndex: i])
     2735        for (NSUInteger i = [indexes firstIndex]; i != NSNotFound; i = [indexes indexGreaterThanIndex: i])
    27362736            [movingTorrents addObject: [fTableView itemAtRow: i]];
    27372737       
     
    27402740        {
    27412741            //change groups
    2742             int groupValue = [item groupIndex];
     2742            NSInteger groupValue = [item groupIndex];
    27432743            NSEnumerator * enumerator = [movingTorrents objectEnumerator];
    27442744            Torrent * torrent;
     
    27612761            NSArray * groupTorrents = item ? [item torrents] : fDisplayedTorrents;
    27622762            Torrent * topTorrent = nil;
    2763             for (int i = newRow-1; i >= 0; i--)
     2763            for (NSInteger i = newRow-1; i >= 0; i--)
    27642764            {
    27652765                Torrent * tempTorrent = [groupTorrents objectAtIndex: i];
     
    27802780           
    27812781            //redo order values
    2782             for (int i = 0; i < [fTorrents count]; i++)
     2782            for (NSInteger i = 0; i < [fTorrents count]; i++)
    27832783                [[fTorrents objectAtIndex: i] setOrderValue: i];
    27842784        }
     
    29432943        {
    29442944            NSRect frame = [fWindow frame];
    2945             float heightChange = contentMinSize.height - contentSize.height;
     2945            CGFloat heightChange = contentMinSize.height - contentSize.height;
    29462946            frame.size.height += heightChange;
    29472947            frame.origin.y -= heightChange;
     
    29762976}
    29772977
    2978 - (NSRect) windowFrameByAddingHeight: (float) height checkLimits: (BOOL) check
     2978- (NSRect) windowFrameByAddingHeight: (CGFloat) height checkLimits: (BOOL) check
    29792979{
    29802980    NSScrollView * scrollView = [fTableView enclosingScrollView];
     
    30273027
    30283028    NSRect frame;
    3029     float heightChange = [fStatusBar frame].size.height;
     3029    CGFloat heightChange = [fStatusBar frame].size.height;
    30303030    if (!show)
    30313031        heightChange *= -1;
     
    30353035    {
    30363036        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;
    30383038        if (change < 0.0)
    30393039        {
     
    30503050   
    30513051    //set views to not autoresize
    3052     unsigned int statsMask = [fStatusBar autoresizingMask];
    3053     unsigned int filterMask = [fFilterBar autoresizingMask];
    3054     unsigned int scrollMask = [scrollView autoresizingMask];
     3052    NSUInteger statsMask = [fStatusBar autoresizingMask];
     3053    NSUInteger filterMask = [fFilterBar autoresizingMask];
     3054    NSUInteger scrollMask = [scrollView autoresizingMask];
    30553055    [fStatusBar setAutoresizingMask: NSViewNotSizable];
    30563056    [fFilterBar setAutoresizingMask: NSViewNotSizable];
     
    30983098
    30993099    NSRect frame;
    3100     float heightChange = [fFilterBar frame].size.height;
     3100    CGFloat heightChange = [fFilterBar frame].size.height;
    31013101    if (!show)
    31023102        heightChange *= -1;
     
    31063106    {
    31073107        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;
    31093109        if (change < 0.0)
    31103110        {
     
    31193119
    31203120    //set views to not autoresize
    3121     unsigned int filterMask = [fFilterBar autoresizingMask];
    3122     unsigned int scrollMask = [scrollView autoresizingMask];
     3121    NSUInteger filterMask = [fFilterBar autoresizingMask];
     3122    NSUInteger scrollMask = [scrollView autoresizingMask];
    31233123    [fFilterBar setAutoresizingMask: NSViewNotSizable];
    31243124    [scrollView setAutoresizingMask: NSViewNotSizable];
     
    33483348- (void) allToolbarClicked: (id) sender
    33493349{
    3350     int tagValue = [sender isKindOfClass: [NSSegmentedControl class]]
     3350    NSInteger tagValue = [sender isKindOfClass: [NSSegmentedControl class]]
    33513351                    ? [(NSSegmentedCell *)[sender cell] tagForSegment: [sender selectedSegment]] : [sender tag];
    33523352    switch (tagValue)
     
    33633363- (void) selectedToolbarClicked: (id) sender
    33643364{
    3365     int tagValue = [sender isKindOfClass: [NSSegmentedControl class]]
     3365    NSInteger tagValue = [sender isKindOfClass: [NSSegmentedControl class]]
    33663366                    ? [(NSSegmentedCell *)[sender cell] tagForSegment: [sender selectedSegment]] : [sender tag];
    33673367    switch (tagValue)
     
    35603560        BOOL checked = NO;
    35613561       
    3562         int index = [menuItem tag];
     3562        NSInteger index = [menuItem tag];
    35633563        NSEnumerator * enumerator = [[fTableView selectedTorrents] objectEnumerator];
    35643564        Torrent * torrent;
     
    39103910- (NSMenu *) applicationDockMenu: (NSApplication *) sender
    39113911{
    3912     int seeding = 0, downloading = 0;
     3912    NSInteger seeding = 0, downloading = 0;
    39133913    NSEnumerator * enumerator = [fTorrents objectEnumerator];
    39143914    Torrent * torrent;
     
    40044004- (NSRect) sizedWindowFrame
    40054005{
    4006     int groups = ([fDisplayedTorrents count] > 0 && ![[fDisplayedTorrents objectAtIndex: 0] isKindOfClass: [Torrent class]])
     4006    NSInteger groups = ([fDisplayedTorrents count] > 0 && ![[fDisplayedTorrents objectAtIndex: 0] isKindOfClass: [Torrent class]])
    40074007                    ? [fDisplayedTorrents count] : 0;
    40084008   
    4009     float heightChange = (GROUP_SEPARATOR_HEIGHT + [fTableView intercellSpacing].height) * groups
     4009    CGFloat heightChange = (GROUP_SEPARATOR_HEIGHT + [fTableView intercellSpacing].height) * groups
    40104010                        + ([fTableView rowHeight] + [fTableView intercellSpacing].height) * ([fTableView numberOfRows] - groups)
    40114011                        - [[fTableView enclosingScrollView] frame].size.height;
     
    40814081       
    40824082        //resize the buttons so they don't overlay
    4083         int difference = (NSMaxX(pauseRect) + 5.0) - searchFrame.origin.x - 1; //subtract 1, since 0 will be counted
     4083        NSInteger difference = (NSMaxX(pauseRect) + 5.0) - searchFrame.origin.x - 1; //subtract 1, since 0 will be counted
    40844084       
    40854085        //decrease downloading by 8, seeding by 1, paused by 1, active by 1, repeat
    4086         int download = (difference / 11 * 8) + MIN(difference % 11 + 1, 8); //8 for every 11
    4087         int seed = (difference / 11) + (difference % 11 >= 8 ? 1 : 0);
    4088         int paused = (difference / 11) + (difference % 11 >= 9 ? 1 : 0);
    4089         int active = (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);
    40904090       
    40914091        activeRect.size.width -= active;
     
    41574157        NSRange visibleRows = [fTableView rowsInRect: [fTableView bounds]];
    41584158       
    4159         for (int row = 0; row < NSMaxRange(visibleRows); row++)
     4159        for (NSInteger row = 0; row < NSMaxRange(visibleRows); row++)
    41604160        {
    41614161            id item = [fTableView itemAtRow: row];
Note: See TracChangeset for help on using the changeset viewer.