mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
KVC updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20828 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5b59c788c
commit
826de16ee7
6 changed files with 453 additions and 88 deletions
|
@ -1511,7 +1511,7 @@ GSObjCGetValue(NSObject *self, NSString *key, SEL sel,
|
|||
}
|
||||
if (type == NULL)
|
||||
{
|
||||
return [self handleQueryWithUnboundKey: key];
|
||||
return [self valueForUndefinedKey: key];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1834,11 +1834,11 @@ GSObjCSetValue(NSObject *self, NSString *key, id val, SEL sel,
|
|||
}
|
||||
if (type == NULL)
|
||||
{
|
||||
[self handleTakeValue: val forUnboundKey: key];
|
||||
[self setValue: val forUndefinedKey: key];
|
||||
}
|
||||
else if ((val == nil || val == null) && *type != _C_ID && *type != _C_CLASS)
|
||||
{
|
||||
[self unableToSetNilForKey: key];
|
||||
[self setNilValueForKey: key];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue