• 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: "Timothy J. Wood" <email@hidden>
  • Date: Wed, 17 Aug 2005 08:23:26 -0700


On Aug 17, 2005, at 8:10 AM, Stephane Sudre wrote:
When I fill it with the clearColor, no drawing operation is performed, the drawings behind the rounded rectangle are still there.

This seems correct if you you filled with clear in s-over mode. You probably want copy mode instead of s-over.


I'll certainly admit that it seems strange if +fillRect: and -fill use different compositing modes, but I don't see anything in the documentation about equivalence of [NSBezierPath fillRect: rect] and [[NSBezierPath bezierPathWithRect: rect] fill.

I typically use the CG primitives for this; you might be able to set the compositing mode that NSBezierPath uses with - [NSGraphicsContext setCompositingOperation:] (10.4 API).

-tim

_______________________________________________
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


References: 
 >[NSColor clearColor] and NSBezierPath: not compatible? (From: Stephane Sudre <email@hidden>)
 >Re: [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: NSTableView blurry contents
  • Previous by thread: Re: [NSColor clearColor] and NSBezierPath: not compatible?
  • Next by thread: Re: [NSColor clearColor] and NSBezierPath: not compatible?
  • Index(es):
    • Date
    • Thread