Files
cappuccino/AppKit/CPTableView/CPTableView.j
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

46 lines
1.6 KiB
Plaintext

/*
* CPTableView.j
* AppKit
*
* Created by Francisco Tolmasky.
* Copyright 2009, 280 North, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
CPTableView is divided by responsibility. CPTableViewCore.j holds the class, its instance
variables, initialization and display attributes; each other file holds a category or a
helper class, and imports CPTableViewCore.j. This file imports them all, so an import of
CPTableView.j brings the complete class.
*/
@import "CPTableViewCore.j"
@import "CPTableRowView.j"
@import "CPTableView+Columns.j"
@import "CPTableView+Selection.j"
@import "CPTableView+Layout.j"
@import "CPTableView+Views.j"
@import "CPTableView+Drawing.j"
@import "CPTableView+Tracking.j"
@import "CPTableView+Dragging.j"
@import "CPTableView+Responder.j"
@import "CPTableView+Editing.j"
@import "CPTableView+DataSource.j"
@import "CPTableView+Delegate.j"
@import "CPTableView+Bindings.j"
@import "CPTableView+Coding.j"
@import "CPTableCellView.j"