[MacRuby-devel] accessing ruby objects from Objective-C

Benjamin Stiglitz ben at tanjero.com
Tue Feb 10 13:10:40 PST 2009


>  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


More information about the MacRuby-devel mailing list