Re: [CALayer cornerRadius] vs. [NSBezierPath bezierPathWithRoundedRect:xRadius:yRadius]

2014-12-02 Thread Bill Cheeseman
> On Dec 1, 2014, at 5:50 PM, Graham Cox wrote: > >> On 2 Dec 2014, at 6:19 am, Bill Cheeseman > > wrote: >> >> Can anyone suggest another approach? > > Not another approach, but a possible alternative explanation. Antialiasing. > Those curved corners will cause

Re: [CALayer cornerRadius] vs. [NSBezierPath bezierPathWithRoundedRect:xRadius:yRadius]

2014-12-01 Thread Graham Cox
> On 2 Dec 2014, at 6:19 am, Bill Cheeseman wrote: > > Can anyone suggest another approach? Not another approach, but a possible alternative explanation. Antialiasing. Those curved corners will cause various nearby pixels to be rendered for antialiasing, and these may differ very slightly de

[CALayer cornerRadius] vs. [NSBezierPath bezierPathWithRoundedRect:xRadius:yRadius]

2014-12-01 Thread Bill Cheeseman
I am looking for a way to work around the conflict between -[CALayer cornerRadius] and +[NSBezierPath bezierPathWithRoundedRect:xRadius:yRadius]. These days, NSBezierPath apparently uses a new algorithm to draw rounded corners on a rectangle, resulting in a smoother-appearing curve. However, va