• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom View drawn twice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Custom View drawn twice?
      • From: Ben Lachman <email@hidden>
References: 
 >Re: Custom View drawn twice? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: NSStream SSL Help
  • Next by Date: Re: KVO autonotifying complaining about custom setter return value
  • Previous by thread: Re: Custom View drawn twice?
  • Next by thread: Re: Custom View drawn twice?
  • Index(es):
    • Date
    • Thread