From nem at lisp.geek.nz Sat Dec 30 07:04:04 2006 From: nem at lisp.geek.nz (Geoff Cant) Date: Sat, 30 Dec 2006 20:04:04 +1300 Subject: [cl-objc-devel] New years hacking Message-ID: Hi everyone, I've done a bit of new year's hacking on cl-objc and made some real progress. You can now use cl-objc to read classes, methods and meta classes. Examples include: OBJC-CFFI> (loop for class in (get-class-list) collect (list class (get-class-methods class))) ((# ((# # # # # # # # # # # # # # # # # # # # # # # #))) (# ((# # # # # #))) (# ((# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #))) (# ((# # #))) (# ((# # #)))) OBJC-CFFI> OBJC-CFFI> (method-get-number-of-arguments (class-get-instance-method "Object" "init")) 2 OBJC-CFFI> (method-get-size-of-arguments (class-get-instance-method "Object" "init")) 8 OBJC-CFFI> (class-get-class-method "Object" "alloc") # OBJC-CFFI> (describe *) # is an Objective C method named "alloc". Type defintion @8 at 0:4 Implementation pointer #.(SB-SYS:INT-SAP #X90A59106) *objc_method #.(SB-SYS:INT-SAP #X00301754) Anyway, if anyone would like to contribute bugs/documentation/advice/code please feel welcome. I'd also be interested to know how well the code runs on implementations other than sbcl/macosx/x86-32. Happy new year, -- Geoff