Re: drawRect is erasing view
Re: drawRect is erasing view
- Subject: Re: drawRect is erasing view
- From: Jonathan Hess <email@hidden>
- Date: Thu, 14 Aug 2008 13:53:29 -0700
Hey Jeff -
The expectation of drawRect is that it will repaint the entire invalid
area. I don't think there is a way to do additive drawing on each call
to draw rect. If you'd like to re-use and erase portions of the same
picture, you could draw to a bitmap context that you keep around and
draw that during draw rect.
Jon Hess
On Aug 14, 2008, at 1:42 PM, email@hidden wrote:
Hi,
I'm trying to do some animation where each time drawRect is called
it's drawing over what was previously drawn, but something is
erasing the view. I've setBackgroundColor for the window to
clearColor so it's no longer drawing the default stripes but now
it's erasing to black.
Any ideas?
thanks
Jeff
_______________________________________________
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
_______________________________________________
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