Commit Graph
2 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
David Richardson d2c365ef21 AppKit: Divide CPTableView into core file and category files
- Move class, instance variables, initialization and display attributes to CPTableViewCore.j

- Move columns, selection, layout, views, drawing, tracking, dragging, responder and editing methods to categories, one file each

- Move existing data source, delegate, bindings and coding categories to files of their own

- Move _CPTableRowView and CPTableCellView to files of their own

- Import all files from CPTableView.j

- Make data source and delegate flag constants global for use across files
2026-11-16 10:14:00 -06:00