CPOutlineView previously blocked all editing unless its delegate implemented
-outlineView:shouldEditTableColumn:item:, even when the column was editable
and the data source supported storing values. Editing is now permitted by
default when the delegate does not implement the method, matching CPTableView
behavior, while delegates that implement it retain control.
- CPOutlineView: Default to permitting edits when the delegate does not
implement -outlineView:shouldEditTableColumn:item:, and update the
delegate method documentation accordingly.
- CPOutlineViewInteractionTest: Add a test verifying editing succeeds when
the delegate omits -outlineView:shouldEditTableColumn:item:.
- Align the default with CPTableView and GNUstep. Apple does not document the
default for -outlineView:shouldEditTableColumn:item:.
Relying on table view drag checks caused outlines to select rows on mouse-up and incorrectly accept drop preparation even when the outline data source lacked drag support.
- CPOutlineView: Test whether the outline data source implements
-outlineView:writeItems:toPasteboard: and
-outlineView:validateDrop:proposedItem:proposedChildIndex: rather than
relying on table view checks.
- CPOutlineViewInteractionTest: Add tests covering row selection timing and
drop preparation with and without outline data source drag support.
Returning a flag constant instead of evaluating it allowed tables and outlines to initiate double-click edits even when neither the data source nor a binding supported storing the value.
- CPTableView: Evaluate the setObjectValue capability against implemented
data source methods rather than returning a static flag constant.
- CPTableView: Track click slop on all clicks to ensure bound tables correctly reject edits after pointer movement.
- CPOutlineView: Test whether the outline data source implements -outlineView:setObjectValue:forTableColumn:byItem: rather than inheriting the table view check.
- CPTableViewInteractionTest: Add tests covering read-only data sources, bound tables, and movements within and beyond click slop thresholds.
- CPOutlineViewInteractionTest: Add tests for outline data sources with and without -outlineView:setObjectValue:forTableColumn:byItem:.
Protects the selection, editing and drag and drop contracts of tables and
outlines by verifying the events, delegate calls and data source calls that
applications depend on. A drop retargeted between the children of an item is
delivered to that item.
* CPOutlineView: Set the retargeted drop operation in
setDropItem:dropChildIndex:.
* CPTableViewInteractionTest: Verify selection by mouse and keyboard, editing,
drag initiation and drop handling, including refusal and retargeting by the
delegate and data source.
* CPOutlineViewInteractionTest: Verify dragged items, proposed parents and child
indexes, drop retargeting, and expansion and its cancellation during a hover.