Skip navigation.
 
mlRe: Custom View drawn twice?
FROM : Ben Lachman
DATE : Wed Mar 05 22:22:33 2008

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_removed>
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
>
>
>
>
>

Related mailsAuthorDate
mlCustom View drawn twice? Ben Lachman Feb 21, 07:23
mlRe: Custom View drawn twice? Ben Lachman Feb 29, 20:55
mlRe: Custom View drawn twice? Ken Ferry Feb 29, 23:52
mlRe: Custom View drawn twice? Ben Lachman Mar 2, 22:02
mlRe: Custom View drawn twice? Uli Kusterer Mar 3, 11:38
mlRe: Custom View drawn twice? Ben Lachman Mar 5, 22:22
mlRe: Custom View drawn twice? Ben Lachman Mar 14, 09:11
mlRe: Custom View drawn twice? Uli Kusterer Mar 14, 13:11
mlRe: Custom View drawn twice? Uli Kusterer Mar 14, 13:34
mlRe: Custom View drawn twice? Uli Kusterer Mar 14, 13:54
mlRe: Custom View drawn twice? Jean-Daniel Dupas Mar 14, 14:09
mlRe: Custom View drawn twice? Ben Lachman Mar 14, 18:13