Changeset 13129


Ignore:
Timestamp:
Jan 4, 2012, 12:36:21 AM (9 years ago)
Author:
livings124
Message:

#4694 replace more reloadData table calls with setNeedsDisplay:

Location:
trunk/macosx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/AddWindowController.m

    r13108 r13129  
    277277    [fTorrent update];
    278278   
    279     [fFileController reloadData];
     279    [fFileController refresh];
    280280   
    281281    if ([fTorrent isChecking])
  • trunk/macosx/FileOutlineController.h

    r12599 r13129  
    4646- (void) setFilterText: (NSString *) text;
    4747
    48 - (void) reloadData;
     48- (void) refresh;
    4949
    5050- (void) setCheck: (id) sender;
  • trunk/macosx/FileOutlineController.m

    r13021 r13129  
    239239}
    240240
    241 - (void) reloadData
     241- (void) refresh
    242242{
    243243    [fTorrent updateFileStat];
     
    246246        tr_wait_msec(100);
    247247   
    248     [fOutline reloadData];
     248    [fOutline setNeedsDisplay: YES];
    249249   
    250250    [fLock unlock];
     
    286286}
    287287
    288 - (void) outlineView: (NSOutlineView *) outlineView willDisplayCell: (id) cell
    289             forTableColumn: (NSTableColumn *) tableColumn item: (id) item
     288- (void) outlineView: (NSOutlineView *) outlineView willDisplayCell: (id) cell forTableColumn: (NSTableColumn *) tableColumn item: (id) item
    290289{
    291290    NSString * identifier = [tableColumn identifier];
     
    302301}
    303302
    304 - (void) outlineView: (NSOutlineView *) outlineView setObjectValue: (id) object
    305         forTableColumn: (NSTableColumn *) tableColumn byItem: (id) item
     303- (void) outlineView: (NSOutlineView *) outlineView setObjectValue: (id) object forTableColumn: (NSTableColumn *) tableColumn byItem: (id) item
    306304{
    307305    NSString * identifier = [tableColumn identifier];
     
    315313       
    316314        [fTorrent setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState forIndexes: indexSet];
    317         [fOutline reloadData];
     315        [fOutline setNeedsDisplay: YES];
    318316       
    319317        [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil];
     
    397395   
    398396    [fTorrent setFileCheckState: state forIndexes: itemIndexes];
    399     [fOutline reloadData];
     397    [fOutline setNeedsDisplay: YES];
    400398   
    401399    [fLock unlock];
     
    418416    [fTorrent setFileCheckState: NSOffState forIndexes: remainingItemIndexes];
    419417   
    420     [fOutline reloadData];
     418    [fOutline setNeedsDisplay: YES];
    421419   
    422420    [fLock unlock];
     
    447445   
    448446    [fTorrent setFilePriority: priority forIndexes: itemIndexes];
    449     [fOutline reloadData];
     447    [fOutline setNeedsDisplay: YES];
    450448   
    451449    [fLock unlock];
  • trunk/macosx/FilePriorityCell.m

    r13023 r13129  
    8686   
    8787    FileOutlineView * controlView = (FileOutlineView *)[self controlView];
    88     [controlView reloadData];
     88    [controlView setNeedsDisplay: YES];
    8989}
    9090
  • trunk/macosx/GlobalOptionsPopoverViewController.m

    r12625 r13129  
    5050- (IBAction) updatedDisplayString: (id) sender
    5151{
     52    #warning setNeedsDisplay: instead of reloadData?
    5253    [[NSNotificationCenter defaultCenter] postNotificationName: @"ReloadTorrentTable" object: nil];
    5354}
  • trunk/macosx/InfoFileViewController.m

    r12940 r13129  
    8484   
    8585    if ([fTorrents count] == 1)
    86         [fFileController reloadData];
     86        [fFileController refresh];
    8787}
    8888
Note: See TracChangeset for help on using the changeset viewer.