fFilterText = [text retain];
}
-- (void) reloadData
+- (void) refresh
{
[fTorrent updateFileStat];
while (![fLock tryLock])
tr_wait_msec(100);
- [fOutline reloadData];
+ [fOutline setNeedsDisplay: YES];
[fLock unlock];
}
return item;
}
-- (void) outlineView: (NSOutlineView *) outlineView willDisplayCell: (id) cell
- forTableColumn: (NSTableColumn *) tableColumn item: (id) item
+- (void) outlineView: (NSOutlineView *) outlineView willDisplayCell: (id) cell forTableColumn: (NSTableColumn *) tableColumn item: (id) item
{
NSString * identifier = [tableColumn identifier];
if ([identifier isEqualToString: @"Check"])
else;
}
-- (void) outlineView: (NSOutlineView *) outlineView setObjectValue: (id) object
- forTableColumn: (NSTableColumn *) tableColumn byItem: (id) item
+- (void) outlineView: (NSOutlineView *) outlineView setObjectValue: (id) object forTableColumn: (NSTableColumn *) tableColumn byItem: (id) item
{
NSString * identifier = [tableColumn identifier];
if ([identifier isEqualToString: @"Check"])
indexSet = [(FileListNode *)item indexes];
[fTorrent setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState forIndexes: indexSet];
- [fOutline reloadData];
+ [fOutline setNeedsDisplay: YES];
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil];
}
[itemIndexes addIndexes: [[fOutline itemAtRow: i] indexes]];
[fTorrent setFileCheckState: state forIndexes: itemIndexes];
- [fOutline reloadData];
+ [fOutline setNeedsDisplay: YES];
[fLock unlock];
}
[remainingItemIndexes removeIndexes: itemIndexes];
[fTorrent setFileCheckState: NSOffState forIndexes: remainingItemIndexes];
- [fOutline reloadData];
+ [fOutline setNeedsDisplay: YES];
[fLock unlock];
}
[itemIndexes addIndexes: [[fOutline itemAtRow: i] indexes]];
[fTorrent setFilePriority: priority forIndexes: itemIndexes];
- [fOutline reloadData];
+ [fOutline setNeedsDisplay: YES];
[fLock unlock];
}
[torrent setFilePriority: priority forIndexes: [(FileListNode *)[self representedObject] indexes]];
FileOutlineView * controlView = (FileOutlineView *)[self controlView];
- [controlView reloadData];
+ [controlView setNeedsDisplay: YES];
}
- (void) addTrackingAreasForView: (NSView *) controlView inRect: (NSRect) cellFrame withUserInfo: (NSDictionary *) userInfo