I'm new both to this list and to MacRuby. Let this message serve as an introduction.
I have some questions that have not seen answered either in the docs or in the list archives. I have been known to miss things before, so please kindly point me in the right direction if this is documented somewhere.
I have seen the embedding sample but I stil can't figure out how I can pull out the following:
1. Mix Obj-C and Ruby Classes: ie, from Ruby be able to extend or use Obj-C classes that are lying around in my project. How do I "require" them? When I try to use them, ruby doesn't seem to recognize them (specifically, it recognizes the classes but not their methods)
2. The same question, but the other way around: how can I use or extend a class declared in Ruby from Obj-C? The only thing that I can come up with is to declare them with @class, but it didn't work (or I didn't do it properly)
3. If I were to call arbitrary scripts as in the embedding sample, how can I pre-initialize ruby objects so that they are available in the environment? I.e, if I allow the user to extend my app by running their ruby code, how can I make my objects available to him? And also, how could I prevent certain objects from being available to him, so that he doesn't break anything?
TIA,
victor
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel