I am drawing a rounded image in the centre of my custom view by creating a rounded NSBezierPath
and adding it to the clipping region of the graphics context. This is working well, but I'm wondering if I can improve the performance of drawing the background of the view (the area outside of the rounded centred image) but inverting this clip and performing the background draw (an NSGradient
fill).
Can anyone suggest a method of inverting a clip path?