You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
if (class_respondsToSelector(class, @selector(isProxy)))
BOOL keep = YES;
if (keep)
keep &= class_respondsToSelector(class, @selector(methodSignatureForSelector:));
if (keep) {
if (class_respondsToSelector(class, @selector(isProxy)))
keep &= ![class isProxy];
}
How do you call + (BOOL)isProxy, where this method is defined? But you only check that instances of class class responds to selector isProxy. Checking - (BOOL)isProxy but calling + (BOOL)isProxy?
The text was updated successfully, but these errors were encountered:
Just did some measures, looks like class_getSuperclass works a lot faster than class_respondsToSelector, this version of checking for NSObject subclass is a lot faster (more than 10x times):
Class superclass = class;
while (superclass && superclass != [NSObject class]) {
superclass = class_getSuperclass(superclass);
}
if (superclass) {
...
}
@jspahrsummers can you just tell me how this lines works
libextobjc/extobjc/EXTRuntimeExtensions.m
Line 354 in 371b8da
How do you call
+ (BOOL)isProxy
, where this method is defined? But you only check that instances of classclass
responds to selector isProxy. Checking- (BOOL)isProxy
but calling+ (BOOL)isProxy
?The text was updated successfully, but these errors were encountered: