mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Guard old ValueForKey function when using the fast-path
This commit is contained in:
parent
78a909f9e8
commit
3ebcf8aa48
1 changed files with 2 additions and 0 deletions
|
@ -147,6 +147,7 @@ SetValueForKey(NSObject *self, id anObject, const char *key, unsigned size)
|
|||
GSObjCSetVal(self, key, anObject, sel, type, size, off);
|
||||
}
|
||||
|
||||
#if !defined(__OBJC2__)
|
||||
static id ValueForKey(NSObject *self, const char *key, unsigned size)
|
||||
{
|
||||
SEL sel = 0;
|
||||
|
@ -232,6 +233,7 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size)
|
|||
}
|
||||
return GSObjCGetVal(self, key, sel, type, size, off);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@implementation NSObject(KeyValueCoding)
|
||||
|
|
Loading…
Reference in a new issue