28 Jul
2008
28 Jul
'08
5:26 a.m.
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