@@ -298,11 +298,11 @@ struct objc_category **cats; unsigned int i; objc_global_mutex_lock(); - for (ml = cls->isa->methodlist; ml != NULL; ml = ml->next) { + for (ml = cls->methodlist; ml != NULL; ml = ml->next) { for (i = 0; i < ml->count; i++) { if (ml->methods[i].sel.uid == sel->uid) { const char *ret = ml->methods[i].sel.types; objc_global_mutex_unlock(); return ret; @@ -310,11 +310,11 @@ } } if ((cats = objc_categories_for_class(cls)) != NULL) { for (; *cats != NULL; cats++) { - for (ml = (*cats)->class_methods; ml != NULL; + for (ml = (*cats)->instance_methods; ml != NULL; ml = ml->next) { for (i = 0; i < ml->count; i++) { if (ml->methods[i].sel.uid == sel->uid) { const char *ret =