aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMObjC2Runtime.m
diff options
context:
space:
mode:
Diffstat (limited to 'Foundation/GTMObjC2Runtime.m')
-rw-r--r--Foundation/GTMObjC2Runtime.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Foundation/GTMObjC2Runtime.m b/Foundation/GTMObjC2Runtime.m
index 9835654..2eb5dc3 100644
--- a/Foundation/GTMObjC2Runtime.m
+++ b/Foundation/GTMObjC2Runtime.m
@@ -58,6 +58,10 @@ Class class_getSuperclass(Class cls) {
return cls->super_class;
}
+BOOL class_respondsToSelector(Class cls, SEL sel) {
+ return class_getInstanceMethod(cls, sel) != nil;
+}
+
Method *class_copyMethodList(Class cls, unsigned int *outCount) {
if (!cls) return NULL;