Changeset 3477


Ignore:
Timestamp:
Oct 20, 2007, 7:29:50 PM (15 years ago)
Author:
livings124
Message:

use given control view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FilePriorityCell.m

    r3476 r3477  
    6767- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) controlView
    6868{
    69     Torrent * torrent = [(FileOutlineView *)[self controlView] torrent];
     69    Torrent * torrent = [(FileOutlineView *)controlView torrent];
    7070    NSDictionary * dict = [self representedObject];
    7171    NSSet * priorities = [torrent filePrioritiesForIndexes: [dict objectForKey: @"Indexes"]];
     
    7373    int count = [priorities count];
    7474   
    75     FileOutlineView * view = (FileOutlineView *)[self controlView];
    76     int hoverRow = [view hoverRow];
    77     if (count > 0 && hoverRow != -1 && [view itemAtRow: hoverRow] == dict)
     75    int hoverRow = [(FileOutlineView *)controlView hoverRow];
     76    if (count > 0 && hoverRow != -1 && [(FileOutlineView *)controlView itemAtRow: hoverRow] == dict)
    7877    {
    7978        [super setSelected: [priorities containsObject: [NSNumber numberWithInt: TR_PRI_LOW]] forSegment: 0];
Note: See TracChangeset for help on using the changeset viewer.