All of these work fine in my environment: $ /usr/local/bin/macirb irb(main):001:0> NSArray.array => []
$ /usr/local/bin/macirb irb(main):001:0> framework 'AppKit' => true irb(main):002:0> NSSpeechSynthesizer.availableVoices => ["com.apple.speech.synthesis.voice.Agnes", …] I will have a look, but could you try a nightly build and see if you still reproduce the problem? http://www.macruby.org/files/nightlies/ Laurent On Oct 14, 2010, at 6:31 AM, Perry E. Metzger wrote: > On Thu, 14 Oct 2010 09:15:34 -0400 Louis-Philippe > <defa...@spiralix.org> wrote: >> Hi all, >> >> on my system, with MacRuby 0.7, I get this error: >> >>>> NSArray.array >> ArgumentError: wrong number of arguments >> >> every NSArray constructor method seems to exibit some kind of >> similar behaviour. >> I searched the tickets and couldn't find it there. > > I had a similarly interesting problem last night with the brand new > 0.7. I can summarize it this way: > > $ macirb --simple-prompt >>> framework 'AppKit'=> true >>> NSSpeechSynthesizer.availableVoices > TypeError: can't convert Class into String > >>> > > This is clearly wrong. (It is even an example given in > http://macruby.labs.oreilly.com/ch01.html and clearly should work.) > > -- > Perry E. Metzger pe...@piermont.com > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel