Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly handle KVC interaction with NSNull #358

Merged
merged 10 commits into from
Dec 28, 2023
Merged

Correctly handle KVC interaction with NSNull #358

merged 10 commits into from
Dec 28, 2023

Conversation

hmelder
Copy link
Contributor

@hmelder hmelder commented Dec 9, 2023

This PR addresses the handling of undefined keys in NSNull by implementing the valueForUndefinedKey: method. By doing so, we do not end up invoking the default handler which raises an exception.

Included in this PR are several unit tests. These tests are designed to verify the correct functioning of various KVC methods when invoked on [NSNull null].

Tests/base/KVC/nsnull.m Outdated Show resolved Hide resolved
Copy link
Member

@fredkiefer fredkiefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now. Please rebase and merge.

@hmelder hmelder merged commit 992377c into master Dec 28, 2023
8 of 9 checks passed
@hmelder hmelder deleted the nsnull_kvc branch December 28, 2023 11:02
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.

2 participants