[MacRuby-devel] array arguments

James Reynolds toast at drtoast.com
Sun Jul 27 20:55:52 PDT 2008


Hi all,

I'm a bit confused about how MacRuby handles array arguments.  In
RubyCocoa I could do this:

cgcolor = CGColorCreate(colorspace,[1.0,1.0,1.0,1.0])

But the same thing in MacRuby gives me this error:

ArgumentError: can't convert Ruby object `[1.0, 1.0, 0.0, 1.0]' to
Objective-C value of type `^f'

Thanks,

James


More information about the MacRuby-devel mailing list