simplify how the torrent table gets the type ahead name for group rows
This commit is contained in:
parent
79c7bab472
commit
b242dcaf14
|
@ -201,8 +201,10 @@
|
||||||
|
|
||||||
- (NSString *) outlineView: (NSOutlineView *) outlineView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn item: (id) item
|
- (NSString *) outlineView: (NSOutlineView *) outlineView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn item: (id) item
|
||||||
{
|
{
|
||||||
return [item isKindOfClass: [Torrent class]] ? [(Torrent *)item name]
|
if ([item isKindOfClass: [Torrent class]])
|
||||||
: [[self preparedCellAtColumn: [self columnWithIdentifier: @"Group"] row: [self rowForItem: item]] stringValue];
|
return [(Torrent *)item name];
|
||||||
|
else
|
||||||
|
return [[self dataSource] outlineView:outlineView objectValueForTableColumn:[self tableColumnWithIdentifier:@"Group"] byItem:item];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *) outlineView: (NSOutlineView *) outlineView toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect tableColumn: (NSTableColumn *) column item: (id) item mouseLocation: (NSPoint) mouseLocation
|
- (NSString *) outlineView: (NSOutlineView *) outlineView toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect tableColumn: (NSTableColumn *) column item: (id) item mouseLocation: (NSPoint) mouseLocation
|
||||||
|
|
Loading…
Reference in New Issue