Skip to content

Commit

Permalink
NSKVOSupport: Send message to metaclass using msgSend
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Dec 13, 2024
1 parent 85fdf53 commit 35c7188
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/NSKVOSupport.m
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,10 @@ + (NSSet *) keyPathsForValuesAffectingValueForKey: (NSString *)key
free(selectorName);
}

return ((NSSet *(*)(id, SEL))objc_msgSend)(self, sel);
if ([self respondsToSelector:sel])
{
return ((NSSet *(*)(id, SEL))objc_msgSend)(self, sel);
}
}
return emptySet;
}
Expand Down

0 comments on commit 35c7188

Please sign in to comment.