mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
NSKVOSupport: Send message to metaclass using msgSend
This commit is contained in:
parent
85fdf53829
commit
35c7188b7a
1 changed files with 4 additions and 1 deletions
|
@ -720,7 +720,10 @@ static void *s_kvoObservationInfoAssociationKey; // has no value; pointer used
|
|||
free(selectorName);
|
||||
}
|
||||
|
||||
return ((NSSet *(*)(id, SEL))objc_msgSend)(self, sel);
|
||||
if ([self respondsToSelector:sel])
|
||||
{
|
||||
return ((NSSet *(*)(id, SEL))objc_msgSend)(self, sel);
|
||||
}
|
||||
}
|
||||
return emptySet;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue