Changeset 1397

Show
Ignore:
Timestamp:
07/30/04 11:36:42 (4 years ago)
Author:
morris
Message:

make sure to call removeFromSuperview from the main thread, or the may be drawing errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCTransfer.m

    r1395 r1397  
    1 /* $Id: WCTransfer.m,v 1.13 2004/07/29 23:40:16 morris Exp $ */ 
     1/* $Id: WCTransfer.m,v 1.14 2004/07/30 09:36:42 morris Exp $ */ 
    22 
    33/* 
     
    2929#import "NSNumberAdditions.h" 
    3030#import "NSStringAdditions.h" 
     31#import "NSThreadAdditions.h" 
    3132#import "WCFile.h" 
    3233#import "WCTransfer.h" 
     
    5758 
    5859- (void)dealloc { 
    59         [_progressIndicator removeFromSuperviewWithoutNeedingDisplay]; 
     60        [_progressIndicator performSelectorOnMainThread:@selector(removeFromSuperview)]; 
    6061 
    6162        [_url release]; 
  • WiredClient/trunk/WCTransferCell.m

    r1201 r1397  
    1 /* $Id: WCTransferCell.m,v 1.3 2004/05/17 16:34:46 morris Exp $ */ 
     1/* $Id: WCTransferCell.m,v 1.4 2004/07/30 09:36:42 morris Exp $ */ 
    22 
    33/* 
     
    137137        // --- add progress indicator to control view once 
    138138        if(![_progressIndicator superview]) 
    139            [view addSubview:_progressIndicator]; 
     139               [view addSubview:_progressIndicator]; 
    140140         
    141141        // --- draw progress indicator