I noticed the same thing also (though haven't tested the latest nightly build). I do have a fix for this, but I don't know how to submit a patch. The problem is in the colors.rb where methods are dynamically generated for the color names. Also the image.rb uses an inefficient method for loading images, I have rewrote it to use CGimagesourceref and it is significantly faster loading large image files. I could email my changes to someone if that would be convenient, but probably not until tomorrow. Al On Wed, 02 Dec 2009 18:44 -0800, "Matt Aimonetti" <mattaimonetti@gmail.com> wrote: Please try a nightly build and let me know. Thanks, - Matt On Wed, Dec 2, 2009 at 6:38 PM, Tim Rand <[1]timrandg@gmail.com> wrote: I am running 0.5 beta2 not the latest development trunk. I'll try updating. I believe I fixed this bug after 0.5 beta2, what version are you on? - Matt On Wed, Dec 2, 2009 at 3:51 PM, Tim Rand <[2]timrandg@gmail.com> wrote:
Though the following code works on macruby 0.4 and mac OS 10.5.8, it no longer works for me since updating macruby and the OS:
macruby -e 'require "hotcocoa/graphics"' -e:1:in `<main>': private method `define_method' called for Class:Class (NoMethodError)
I am running: OS 10.6.2 MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64] (with ruby version 1.9.0)
I don't see a define_method call anywhere in the source code in the
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/rub y/1.9.0/hotcocoa/graphics.rb
file.
I just want to tinker with HotCocoa::Graphics. Any advice or explanation would be appreciated.
Thanks, Tim
_______________________________________________ MacRuby-devel mailing list [3]MacRuby-devel@lists.macosforge.org
[4]http://lists.macosforge.org/mailman/listinfo.cgi/macruby-de vel