I'm trying to draw a transparent highlight color in my TableView pretty simply:
if ([self isSelected]){
self.alphaValue = 0.5f;
NSColor * fillColor = [NSColor colorWithCalibratedRed: 100.0f/256.0f
green: 100.0f/256.0f
blue: 100.0f/256.0f
alpha: 0.5];
[fillColor drawSwatchInRect:dirtyRect];
}
It draws something a bit odd though, a digonal line between the original color and the new alpha color. I know the solution is probably something pretty simple-- but I can't seem to figure out what it is. Any ideas?