I'm trying to draw some elements of my interface in Cocoa, mostly icons for buttons, but it is very difficult for me to get the accuracy I would like.
I use super simple code like this to draw rectangles:
[[NSColor redColor] set];
[NSBezierPath strokeRect:myRect];
But I see that the red line of the rectangle has always faded.
What am I missing here?
Benl0 source
share