Re: [NSColor clearColor] and NSBezierPath: not compatible?
Re: [NSColor clearColor] and NSBezierPath: not compatible?
- Subject: Re: [NSColor clearColor] and NSBezierPath: not compatible?
- From: Stephane Sudre <email@hidden>
- Date: Wed, 17 Aug 2005 17:10:05 +0200
On 17 août 05, at 17:00, email@hidden wrote:
On Aug 17, 2005, at 9:52 AM, Stephane Sudre wrote:
A look in the archives did not bring back any good answer.
It looks like NSBezierPath fill method does not work with the
clearColor.
Filling with another color works fine.
Well, [NSBezierPath fillRect: rect] works fine with clearColor, which
is suppose to be equivalent to [[NSBezierPath bezierPathWithRect:
rect] fill]
So how are you determining that filling with the clearColor doesn't
work?
I have a rounded rectangle build with a NSBezierPath.
When I fill it with the clearColor, no drawing operation is performed,
the drawings behind the rounded rectangle are still there.
When I fill it with the [NSColor redColor], a red rounded rectangle is
drawn.
IMHO, the [NSBezierPath bezierPathWithRect: rect] is probably using an
optimized path to fill the rectangle and somehow falls back to the
NSRect drawing methods.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden