Re: Custom View drawn twice?
Re: Custom View drawn twice?
- Subject: Re: Custom View drawn twice?
- From: Ben Lachman <email@hidden>
- Date: Wed, 5 Mar 2008 16:22:33 -0500
displayIfNeededIgnoringOpacity goes back up the view hierarchy
looking for an opaque superview to start drawing with. Doing so was
causing an infinite drawing loop. I'm pretty sure this is because
you're not really supposed to be calling setNeedsDisplay...: and
displayIfNeeded...: within your drawRect: method. In any case it was
a nasty hack to get correct looking functionality and I'm actually
more interested in figuring out what is causing the double drawing
than hack a fix on top of it.
->Ben
--
Ben Lachman
Acacia Tree Software
http://acaciatreesoftware.com
email@hidden
740.590.0009
On Mar 3, 2008, at 5:38 AM, Uli Kusterer wrote:
Am 29.02.2008 um 20:55 schrieb Ben Lachman:
[self displayIfNeededIgnoringOpacity];
Is there a particular reason why you're calling this method? Won't
plain old -displayIfNeeded do the job?
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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