Skip to content

NSMatrix: no cell class when a prototype is used#492

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nsmatrix-cellclass-prototype
Open

NSMatrix: no cell class when a prototype is used#492
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nsmatrix-cellclass-prototype

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

-[NSMatrix cellClass] returned the prototype cell's class when the
matrix was built with a prototype. A matrix's cell class and its
prototype are alternatives, and OS X returns nil from cellClass while a
prototype is set. Return Nil in that case. The stored class is left
untouched (it is still what setPrototype: records for the archiver and
is unused for cell creation while a prototype is set), so the coder and
cell creation are unaffected. Verified on a macOS runner: a
prototype-built matrix reports no cell class.

Adds a test for the cell class / prototype relationship.

@DTW-Thalion DTW-Thalion requested a review from fredkiefer as a code owner July 12, 2026 16:35
@DTW-Thalion DTW-Thalion force-pushed the fix/nsmatrix-cellclass-prototype branch 3 times, most recently from f9153c8 to 46d3fd6 Compare July 12, 2026 20:41
-cellClass returned the prototype cell's class when the matrix was set
up with a prototype.  OS X returns nil in that case (the cell class and
the prototype are alternatives).  Return Nil while a prototype is set.
The stored class is left untouched, so the coder and cell creation are
unaffected.
@DTW-Thalion DTW-Thalion force-pushed the fix/nsmatrix-cellclass-prototype branch from 46d3fd6 to 4c61e77 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