On Oct 4, 2010, at 11:04 AM, Rainer Standke wrote:

> wondering how to clear a context. I'm using this:
> 
> CGContextClearRect(context, drawingRect);
> 
> But yet, afetr I do that, and then start to draw something new, I get 
> remnants of the previous content of the context.


Where are you calling this? About the only thing I know of that might cause 
this is trying to call UIGraphicsGetCurrentContext() from outside of -drawRect: 
(in which case unless you've pushed or started your own context you get back 
NULL, which CG ignores).
--
David Duncan

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to