[MacRuby-devel] array arguments

Laurent Sansonetti lsansonetti at apple.com
Sun Jul 27 22:26:18 PDT 2008


Hi James,

On Jul 27, 2008, at 8:55 PM, James Reynolds wrote:

> 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'

Sorry, this is something that I did not implement yet. Could you file  
a ticket on the tracker? I will fix this.

MacRuby's BridgeSupport implementation is not entirely complete yet.

Laurent


More information about the MacRuby-devel mailing list