From: Patrick G. <pge...@wa...> - 2008-06-18 10:16:49
|
> Correct. I haven't looked at the source, but assume that objc_method > is just calling through to the objc runtime methods; see here in > particular - http://developer.apple.com/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html#/ > /apple_ref/c/func/class_addMethod That's right. Ruby is calling it in imp_c_addRubyMethod_withType ( http://www.opensource.apple.com/darwinsource/10.5/RubyCocoa-57/RubyCocoa/framework/src/objc/OverrideMixin.m ) From the source of objc_method, you should be able to call it with more readable arguments : objc_method [:BOOL, :id] meaning returning BOOL and taking one NSObject. I didn't test it, though. -Patrick |