Skip to content

NSMatrix: selectCellAtRow:column: selects a single cell in list mode#480

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nsmatrix-list-single-select
Open

NSMatrix: selectCellAtRow:column: selects a single cell in list mode#480
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nsmatrix-list-single-select

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

In list mode, -[NSMatrix selectCellAtRow:column:] added the cell to the
selection instead of replacing it, so calling it twice left two cells
selected. OS X selects a single cell (deselecting the others) in list
mode as well as radio mode. Deselect the existing selection in list mode
before selecting the cell. Mouse dragging, which extends the selection,
uses other methods and is unaffected. Verified on a macOS runner: two
selectCellAtRow:column: calls leave one cell selected.

Adds a test for the single selection.

@DTW-Thalion DTW-Thalion requested a review from fredkiefer as a code owner July 12, 2026 13:56
@DTW-Thalion DTW-Thalion force-pushed the fix/nsmatrix-list-single-select branch 3 times, most recently from 78e1e81 to 6a36805 Compare July 12, 2026 20:41
In list mode selectCellAtRow:column: added to the selection instead of
replacing it, so it could not be used to move a single selection.  OS X
deselects the other cells.  Deselect the existing selection in list mode
before selecting.  Mouse dragging, which uses other methods, still
extends the selection.
@DTW-Thalion DTW-Thalion force-pushed the fix/nsmatrix-list-single-select branch from 6a36805 to 1f464d5 Compare July 12, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant