Hi Frank,
Sorry for the late response. It seems to work here. Following is a
small test that loads a class from a Ruby file, calls +new on it, then
changes the code, re-loads it again.
Could you try to reduce your problem to a small test like this one and
let us know?
Thanks,
Laurent
$
Thanks for your quick answer. But sadly, it does not seem to work.
My application is a regular Objective-C application and uses MacRuby to load
plug-in ruby classes which reside in their own .rb file.
First I implemented the loading like this:
NSString* path = @"/path/to/MyPlugInClass.rb";
[[Mac
This is the right place to ask this kind of questions and welcome to the
list :)
What kind of file are you loading? If you are reloading a ruby, you might
want to try to use load instead of require.
http://www.fromjavatoruby.com/2008/10/require-vs-load.html
- Matt
On Thu, Nov 12, 2009 at 11:11
Hello folks,
please excuse me if this is not the right mailing list to post this question:
I am currently porting an application from PyObjC to MacRuby. Under PyObjC it
is possible to reload a .py file containing a class definition at runtime.
-[MacRuby evaluateFileAtPath:] works fine for me l