Changeset 12950 for branches


Ignore:
Timestamp:
Oct 8, 2011, 9:30:56 PM (10 years ago)
Author:
livings124
Message:

#4547 don't use blocks while we support 10.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4x/macosx/FileOutlineController.m

    r12897 r12950  
    7373    [fOutline setMenu: [self menu]];
    7474   
    75     fLock = [[NSRecursiveLock alloc] init];
     75    //fLock = [[NSRecursiveLock alloc] init];
    7676    [fLock setName: @"File Table"];
    7777   
     
    103103    fFilterText = nil;
    104104   
    105     while (![fLock tryLock])
    106         tr_wait_msec(100);
     105    /*while (![fLock tryLock])
     106        tr_wait_msec(100);*/
    107107   
    108108    [fOutline deselectAll: nil];
     
    126126    const BOOL onLion = [NSApp isOnLionOrBetter];
    127127   
    128     while (![fLock tryLock])
    129         tr_wait_msec(100);
     128    /*while (![fLock tryLock])
     129        tr_wait_msec(100);*/
    130130   
    131131    if (onLion)
    132132    {
    133         [[NSAnimationContext currentContext] setCompletionHandler: ^{ [fLock unlock]; }];
     133        [[NSAnimationContext currentContext] setCompletionHandler: nil];
    134134        [NSAnimationContext beginGrouping];
    135135       
     
    243243    [fTorrent updateFileStat];
    244244   
    245     while (![fLock tryLock])
    246         tr_wait_msec(100);
     245    /*while (![fLock tryLock])
     246        tr_wait_msec(100);*/
    247247   
    248248    [fOutline reloadData];
     
    387387- (void) setCheck: (id) sender
    388388{
    389     while (![fLock tryLock])
    390         tr_wait_msec(100);
     389    /*while (![fLock tryLock])
     390        tr_wait_msec(100);*/
    391391   
    392392    NSInteger state = [sender tag] == FILE_UNCHECK_TAG ? NSOffState : NSOnState;
     
    405405- (void) setOnlySelectedCheck: (id) sender
    406406{
    407     while (![fLock tryLock])
    408         tr_wait_msec(100);
     407    /*while (![fLock tryLock])
     408        tr_wait_msec(100);*/
    409409   
    410410    NSIndexSet * indexSet = [fOutline selectedRowIndexes];
     
    439439    }
    440440   
    441     while (![fLock tryLock])
    442         tr_wait_msec(100);
     441    /*while (![fLock tryLock])
     442        tr_wait_msec(100);*/
    443443   
    444444    NSIndexSet * indexSet = [fOutline selectedRowIndexes];
     
    455455- (void) revealFile: (id) sender
    456456{
    457     while (![fLock tryLock])
    458         tr_wait_msec(100);
     457    /*while (![fLock tryLock])
     458        tr_wait_msec(100);*/
    459459   
    460460    NSIndexSet * indexes = [fOutline selectedRowIndexes];
Note: See TracChangeset for help on using the changeset viewer.