So, I'm still fiddling with Scripting Bridge, and have managed to create objects (woohoo!), but I can't get the colors set for some reason. I've tried setting the color with (these are all in the NSDictionary I pass to the object for properties:
That fails with the error:
-getRed:green:blue:alpha: not defined for the NSColor NSCalibratedWhiteColorSpace 0 1; need to first convert colorspace. so I tried:
and:
all of which result in a black stroke color -- no matter what I try, it's always black. I've been unable to alter the fill and gradient colors as well. All of the other properties I set (size, origin, etc) are working.
Help!
Code:
[NSColor blackColor]
-getRed:green:blue:alpha: not defined for the NSColor NSCalibratedWhiteColorSpace 0 1; need to first convert colorspace. so I tried:
Code:
[[NSColor greenColor] colorUsingColorSpaceName:NSDeviceRGBColorSpace], @"strokeColor"
Code:
[NSColor colorWithDeviceRed:0 green:1 blue:0 alpha:0], @"strokeColor"
Code:
[NSColor colorWithCalibratedRed:0 green:1 blue:0 alpha:0], @"strokeColor"
all of which result in a black stroke color -- no matter what I try, it's always black. I've been unable to alter the fill and gradient colors as well. All of the other properties I set (size, origin, etc) are working.
Help!