Skip to content

NSTableColumn: keep the resizable flag and resizing mask consistent#489

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nstablecolumn-resizable-mask
Open

NSTableColumn: keep the resizable flag and resizing mask consistent#489
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nstablecolumn-resizable-mask

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

-[NSTableColumn isResizable] and the resizing mask were independent:
setResizingMask: did not affect isResizable, and setResizable: did
not touch the mask (the existing code had a TODO noting this). OS X keeps
the two consistent -- isResizable reflects whether the mask allows any
resizing, and setResizable: sets the mask.

Make setResizable: set the mask to the auto/user resizing combination
(YES) or to no resizing (NO), and setResizingMask: update the resizable
flag from whether the mask allows any resizing. isResizable stays the
value serialised by the coder, which both setters now keep in step with
the mask. Verified on a macOS runner across the four combinations.

Adds a test for the resizable/mask relationship.

@DTW-Thalion DTW-Thalion requested a review from fredkiefer as a code owner July 12, 2026 16:07
@DTW-Thalion DTW-Thalion force-pushed the fix/nstablecolumn-resizable-mask branch 3 times, most recently from da93163 to e71b730 Compare July 12, 2026 20:41
isResizable and the resizing mask were independent: setResizingMask: did
not affect isResizable, and setResizable: did not affect the mask.  OS X
derives one from the other.  Make setResizable: set the mask (to the
auto/user combination or to no resizing) and setResizingMask: update the
resizable flag, so the two stay consistent.
@DTW-Thalion DTW-Thalion force-pushed the fix/nstablecolumn-resizable-mask branch from e71b730 to ef1a6ae Compare July 12, 2026 20:49
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