Re: Erasing drawn content
Re: Erasing drawn content
- Subject: Re: Erasing drawn content
- From: Quincey Morris <email@hidden>
- Date: Tue, 8 Jun 2010 16:05:00 -0700
On Jun 8, 2010, at 14:10, Kyle Sluder wrote:
> It sounds like the overlay window is the best bet.
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.
_______________________________________________
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