drawRect is erasing view

2008-08-14 Thread jeffs87
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?

Re: drawRect is erasing view

2008-08-14 Thread Kyle Sluder
On Thu, Aug 14, 2008 at 4:42 PM, <[EMAIL PROTECTED]> wrote: > 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

Re: drawRect is erasing view

2008-08-14 Thread jeffs87
Hi, >Are you calling drawRect yourself? Don't. No I'm calling setNeedsDisplay with a timer. thanks Jeff ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: drawRect is erasing view

2008-08-14 Thread Jonathan Hess
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

Re: drawRect is erasing view

2008-08-14 Thread Uli Kusterer
On 14.08.2008, at 22:42, [EMAIL PROTECTED] wrote: 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 str