From 75712d61a3186bacab1cd562d5edd27f63ee4080 Mon Sep 17 00:00:00 2001 From: theraven Date: Thu, 3 Jun 2010 17:42:15 +0000 Subject: [PATCH] Made Object use sensible functions instead of ones that don't exist. --- Object.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Object.m b/Object.m index 0f3e82d..9d4436f 100644 --- a/Object.m +++ b/Object.m @@ -182,11 +182,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see return class_get_instance_method(self, aSel)!=METHOD_NULL; } +BOOL class_respondsToSelector(Class, SEL); - (BOOL)respondsTo:(SEL)aSel { - return ((object_is_instance(self) - ?class_get_instance_method(self->isa, aSel) - :class_get_class_method(self->isa, aSel))!=METHOD_NULL); + return class_respondsToSelector(isa, aSel); } + (IMP)instanceMethodFor:(SEL)aSel