I've been searching for a way of casting inner glow (shadow) on NSImage. And I've landed on this topic. The code given under this topic looks promising. It's an unfamiliar territory for me now. Anyway, I'm stuck with the following line.
CGContextSetShadowWithColor(c,CGSizeMake(0,-1),innerShadowBlurRadius,CGColorGetConstantColor(kCGColorBlack));
More specifically, I don't quite understand the color part. According to the documentation, the last term is CGColorRef, which I have never used. I suppose it's the color type used for Quartz 2D drawing. In other words, specify a color in the language that Quartz 2D understands, maybe? Anyway, the documentation further suggests that there are three color constants. kCGColorWhite, kCGColorBlack, kCGColorClear. Does that mean I cannot specify an RGB color in this respect?
Thank you for your help.