Add prototype cell view support, remove code that forces prototypeCellView to be NSView

This commit is contained in:
Gregory John Casamento 2024-02-11 09:19:40 -05:00
parent b06b23c97c
commit e4c7bb540c
4 changed files with 26 additions and 11 deletions

View file

@ -3539,18 +3539,19 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
view = [delegate tableView: tableView
viewForTableColumn: tb
row: rowIndex];
NSDebugLog(@"View = %@", view);
drawingRect = [tableView frameOfCellAtColumn: i
row: rowIndex];
[view setFrame: drawingRect];
[tableView addSubview: view];
}
/*
else
{
view = AUTORELEASE([[NSTableCellView alloc] init]);
}
NSDebugLog(@"View = %@", view);
drawingRect = [tableView frameOfCellAtColumn: i
row: rowIndex];
[view setFrame: drawingRect];
[tableView addSubview: view];
*/
}
}