10.7 build of Color Art plugin

itsthejayj's picture

Hi Guys, an emergency request here. I've got a QCcolorArt plugin that needs to be built for 10.7. I've changed the build targets but now have some ARC semantic issues.

Is there any chance please, please, please you could have a look at this and build it for 10.7

Much thanks, feel free to bill me for this emergency work.

https://dl.dropboxusercontent.com/u/31564678/QCColourArt%202.zip

Thanks

J

dust's picture
Re: 10.7 build of Color Art plugin

this will build 10.7

NSColor * color = colourArt.primaryColor;
NSInteger numberOfComponents = [color numberOfComponents];
CGFloat components[numberOfComponents];
CGColorSpaceRef colorSpace = [[color colorSpace] CGColorSpace];
[color getComponents:(CGFloat *)&components];
CGColorRef cgColor = CGColorCreate(colorSpace, components);
 
if (colourArt.primaryColor)
primary =  cgColor;