Re: drawRect infinite loop -- argh!
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