Commit Graph
1 Commits
Author SHA1 Message Date
David Richardson 18ac703f4e AppKit: Add previously missing public CPTableRowView with AppKit's row view API
- Replace _CPTableRowView with CPTableRowView: state properties, background colour with application and default values, viewAtColumn: and numberOfColumns

- Set all row view state from table view in one method at attach, selection change, full update and drop target change

- Write row view look in layoutSubviews instead of in setters

- Add rowViewAtRow:makeIfNecessary:, enumerateAvailableRowViewsUsingBlock:, didAddRowView:forRow: and didRemoveRowView:forRow:

- Accept row views in rowForView:

- Add tableView:rowViewForRow:, tableView:didAddRowView:forRow: and tableView:didRemoveRowView:forRow: delegate methods, and outline view equivalents

- Keep row views apart from data view loading, so column changes no longer recycle them

- Keep private row views below last row, reuse table-made row views from pool and delegate row views by identifier

- Return no unfocused selection colour for missing or CSS-based selection colour instead of raising

- Add CPTableRowView tests
2026-11-16 10:55:44 -06:00