10 Feb
2009
10 Feb
'09
9:10 p.m.
I describe calling ruby side objects from the ObjC side. I can make it work using dynamic classes but of course that generates compiler warnings (like no '-baz' method found). Of course it still works, but is there any way for my ObjC classes to know at compile time what are the class names and methods on the ruby classes?
Not really, since this list is potentially dynamic. That being said, it’d be nice if the runtime could dump a header for the current state of a class, ScriptingBridge-style. I might look into this. -Ben