From 4bcd7e54d49e128f4a8e713faa2a25f4797e0120 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Fri, 21 Sep 2007 16:17:57 +0200 Subject: Make the test suite work on Mac OS X. darcs-hash:d91ddd8e48860553eae62249043f13dd973a40c2 --- Objective-C/libobjcl.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Objective-C') diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m index 849eedf..205a998 100644 --- a/Objective-C/libobjcl.m +++ b/Objective-C/libobjcl.m @@ -65,7 +65,10 @@ objcl_invoke_with_types (int argc, NS_DURING { #ifdef __NEXT_RUNTIME__ - method = class_getInstanceMethod ([receiver class], method_selector)->method_imp; + if (objcl_object_is_class (receiver)) + method = class_getClassMethod (receiver, method_selector)->method_imp; + else + method = class_getInstanceMethod ([receiver class], method_selector)->method_imp; #else method = objc_msg_lookup (receiver, method_selector); /* Alternatively: -- cgit v1.2.3