Skip to content

Commit

Permalink
NSNull: Implement valueForUndefinedKey and return [NSNull null]
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Dec 9, 2023
1 parent 70e56ec commit 1f9bbee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/NSNull.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ - (NSString*) description
return @"<null>";
}

- (id) valueForUndefinedKey: (NSString*)aKey {
return null;
}

- (void) encodeWithCoder: (NSCoder*)aCoder
{
}
Expand Down

0 comments on commit 1f9bbee

Please sign in to comment.