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
ed7ff3a77d
commit
85fdf53829
1 changed files with 2 additions and 4 deletions
|
@ -44,6 +44,7 @@
|
|||
|
||||
/* This Key Value Observing Implementation is tied to libobjc2 */
|
||||
|
||||
#include "GNUstepBase/GSObjCRuntime.h"
|
||||
#import "common.h"
|
||||
#import "NSKVOInternal.h"
|
||||
#import <objc/objc-arc.h>
|
||||
|
@ -719,10 +720,7 @@ static void *s_kvoObservationInfoAssociationKey; // has no value; pointer used
|
|||
free(selectorName);
|
||||
}
|
||||
|
||||
if ([self respondsToSelector:sel])
|
||||
{
|
||||
return [self performSelector:sel];
|
||||
}
|
||||
return ((NSSet *(*)(id, SEL))objc_msgSend)(self, sel);
|
||||
}
|
||||
return emptySet;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue