Changeset 2192


Ignore:
Timestamp:
Jun 24, 2007, 3:02:29 PM (15 years ago)
Author:
livings124
Message:

get rid of an unneeded variable

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FilePriorityCell.h

    r2189 r2192  
    1010}
    1111
    12 - (id) initForParentView: (FileOutlineView *) parentView;
    1312- (void) setItem: (NSMutableDictionary *) item;
    1413
  • trunk/macosx/FilePriorityCell.m

    r2190 r2192  
    44@implementation FilePriorityCell
    55
    6 - (id) initForParentView: (FileOutlineView *) parentView
     6- (id) init
    77{
    88    if ((self = [super init]))
     
    1818            [self setWidth: 6.0 forSegment: i];
    1919        }
    20        
    21         #warning better way?
    22         fParentView = parentView;
    2320    }
    2421    return self;
     
    4946   
    5047    [torrent setFilePriority: actualPriority forIndexes: indexes];
    51     [fParentView reloadData];
     48    [(FileOutlineView *)[self controlView] reloadData];
    5249}
    5350
     
    6461        high = [torrent hasFilePriority: PRIORITY_HIGH forIndexes: indexSet];
    6562   
    66     int row = [fParentView hoverRow];
    67     if (row != -1 && [fParentView itemAtRow: row] == fItem)
     63    FileOutlineView * view = (FileOutlineView *)[self controlView];
     64    int row = [view hoverRow];
     65    if (row != -1 && [view itemAtRow: row] == fItem)
    6866    {
    6967        [super setSelected: low forSegment: 0];
  • trunk/macosx/InfoWindowController.m

    r2190 r2192  
    109109   
    110110    //set file outline
    111     FilePriorityCell * priorityCell = [[[FilePriorityCell alloc] initForParentView: fFileOutline] autorelease];
     111    FilePriorityCell * priorityCell = [[[FilePriorityCell alloc] init] autorelease];
    112112    [[fFileOutline tableColumnWithIdentifier: @"Priority"] setDataCell: priorityCell];
    113113   
Note: See TracChangeset for help on using the changeset viewer.