• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NSColor clearColor] and NSBezierPath: not compatible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: [NSColor clearColor] and NSBezierPath: not compatible?
      • From: "Timothy J. Wood" <email@hidden>
References: 
 >[NSColor clearColor] and NSBezierPath: not compatible? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: [NSColor clearColor] and NSBezierPath: not compatible?
  • Next by Date: Re: [NSColor clearColor] and NSBezierPath: not compatible?
  • Previous by thread: Re: [NSColor clearColor] and NSBezierPath: not compatible?
  • Next by thread: Re: [NSColor clearColor] and NSBezierPath: not compatible?
  • Index(es):
    • Date
    • Thread