Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!sdd.hp.com!cs.utexas.edu!uunet!fernwood!portal!gouche! From: grant@gouche (Grant J. Munsey) Newsgroups: comp.sys.next Subject: class_getInstanceMethod() Message-ID: <233@gouche.UUCP> Date: 12 Jun 91 14:08:16 GMT Article-I.D.: gouche.233 Sender: grant@gouche.UUCP Reply-To: Grant@gouche.portal.com Lines: 18 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