From 433c4892737916679754c56b832518b187c5d54f Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sat, 2 Feb 2008 19:37:04 +0100 Subject: New journal entry. darcs-hash:ccba69bc85ff52c31dc33774627b53eabb9798ed --- JOURNAL | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/JOURNAL b/JOURNAL index cba64f7..891b86d 100644 --- a/JOURNAL +++ b/JOURNAL @@ -1,5 +1,29 @@ -*- mode: muse -*- +* 2008-01-29, 21:34:16 CET + +In the Objective-C 2.0 runtime, the functions +class_add{Method,Protocol,Ivar}, class_copyMethodList, +{class,protocol}_copyProtocolList, protocol_copyMethodDescriptionList, +and class_copyPropertyList are probably our friends. +class_copyMethodList may be used to together with +method_setImplementation for good effect. + +But... What about the GNU runtime? Is it okay to inspect a Class' +`methods' member (see objc.h and objc-api.h) and change the IMPs that +the individual members point to? Is it possible to add new methods at +runtime by using class_add_method_list and thus +ObjcUtilities_register_method_list? Is the behaviour of these two +functions specified if a method list for a given class has already been +registered in the past? If so, do they replace the original list or +amend it? + +Changing ivars after class creation seems generally impossible. This +applies to all the supported runtimes, and I think I can actually see +why. I don't think it's a serious problem, but I do consider it +regrettable. + + * 2008-01-28, 20:45:35 CET I've added the following files as a first step to support class -- cgit v1.2.3