Re: Erasing drawn content
Re: Erasing drawn content
- Subject: Re: Erasing drawn content
- From: Kyle Sluder <email@hidden>
- Date: Tue, 8 Jun 2010 16:12:50 -0700
On Tue, Jun 8, 2010 at 4:05 PM, Quincey Morris
<email@hidden> wrote:
> On Jun 8, 2010, at 14:10, Kyle Sluder wrote:
> Surely it's easier to do what the OP wanted with a clipping path?
>
> In drawRect: just draw the tint rectangles front-to-back instead of back-to-front, and after drawing each one remove the rect's interior from the clipping path. No "off-screen" drawing is needed, nor any complex logic to draw all the non-overlapping rectangle pieces separately.
Except that would still rely on inserting a custom view in the
WebView's private scrollview hierarchy.
--Kyle Sluder
(Waiting for an Apple Engineer in the Cocoa Lab at WWDC)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden