make private methods work properly and put overided methods into the

correct class
This commit is contained in:
Bill Currie 2003-08-01 16:24:44 +00:00
parent 1b5bf9d176
commit 8e21ecd4d9

View file

@ -419,7 +419,7 @@ class_find_method (class_type_t *class_type, method_t *method)
m->params->type = start_class->type;
else
m->params->type = &type_Class;
add_method (methods, m);
add_method (start_methods, m);
}
return m;
}
@ -435,6 +435,11 @@ class_find_method (class_type_t *class_type, method_t *method)
method->instance ? '-' : '+',
sel->str, class_name,
category_name ? va (" (%s)", category_name) : "");
add_method (start_methods, method);
if (method->instance)
method->params->type = start_class->type;
else
method->params->type = &type_Class;
}
dstring_delete (sel);
return method;