grant@gouche (Grant J. Munsey) (06/12/91)
Has anyone got some experience with class_getInstanceMethod() and
class_addInstanceMethods()? I can't seem to get either of these to
work. Specifically, why doesn't the following work?
id cid;
static struct objc_method_list m;
cid = objc_getClass("Object");
m.method_next = NULL;
m.method_count = 1;
m.method_list[0].method_name = SELUID("twit:");
m.method_list[0].method_types = "@:i";
m.method_list[0].method_imp = (IMP)myProc;
class_addInstanceMethods(cid->isa, &m);
----
Grant Munsey, Mainticore, Inc. (408) 733-3838
grant@gouche.portal.com or decwrl!apple!portal!gouche!grant