• 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: drawRect infinite loop -- argh!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawRect infinite loop -- argh!


  • Subject: Re: drawRect infinite loop -- argh!
  • From: Andy Lee <email@hidden>
  • Date: Sun, 20 Jul 2008 04:39:54 -0400

On Jul 19, 2008, at 11:51 PM, Brian Hughes wrote:
How do I track down the cause of an infinite loop in my drawRect method.

Have you tried putting a breakpoint in it?

Are there any other custom views in your view hierarchy, and if so, what do *their* -drawRect: methods look like? One possible bug is that you are getting infinite recursion because a -drawRect: method is forcing a redraw, which causes -drawRect: to be called again, which forces another redraw, etc.

--Andy

_______________________________________________

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


References: 
 >drawRect infinite loop -- argh! (From: Brian Hughes <email@hidden>)

  • Prev by Date: Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)
  • Next by Date: can't find NSDefaultRunLoopMode in 10.4.x
  • Previous by thread: Re: drawRect infinite loop -- argh!
  • Next by thread: Re: drawRect infinite loop -- argh!
  • Index(es):
    • Date
    • Thread