@@ -39,15 +39,16 @@ if (!(object_getClass(object)->info & OBJC_CLASS_INFO_INITIALIZED)) { Class class = (isClass ? (Class)object : object_getClass(object)); - objc_initialize_class(class); + objc_initializeClass(class); if (!(class->info & OBJC_CLASS_INFO_SETUP)) - OBJC_ERROR("Could not dispatch message for incomplete " - "class %s!", class_getName(class)); + OBJC_ERROR("Could not dispatch message %s for " + "incomplete class %s!", + sel_getName(selector), class_getName(class)); /* * We don't need to handle the case that super was called. * The reason for this is that a call to super is not possible * before a message to the class has been sent and it thus has @@ -95,18 +96,18 @@ (isClass ? '+' : '-'), sel_getName(selector), object_getClassName(object)); } IMP -objc_method_not_found(id object, SEL selector) +objc_methodNotFound(id object, SEL selector) { return commonMethodNotFound(object, selector, objc_msg_lookup, forwardHandler); } IMP -objc_method_not_found_stret(id object, SEL selector) +objc_methodNotFound_stret(id object, SEL selector) { return commonMethodNotFound(object, selector, objc_msg_lookup_stret, stretForwardHandler); } @@ -121,11 +122,11 @@ class_respondsToSelector(Class class, SEL selector) { if (class == Nil) return false; - return (objc_dtable_get(class->DTable, + return (objc_dtable_get(class->dTable, (uint32_t)selector->UID) != (IMP)0); } #ifndef OF_ASM_LOOKUP static id