On Jul 20, 2008, at 11:52 AM, Brian Hughes wrote:
Thread 2
-[LNTab3View drawRect:] at LNTab3View.m:52
-[NSView _drawRect:clip:]
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiv
Thanks for all of the replies. I do use the debugger, but even with the
debugger I couldn't figure out why it is looping.
Obviously, there is something I am not understanding which is why I am writing
to cocoa-dev.
I also removed the NSLog statement but it is still looping. I can't see it in
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 possib
See a break point in drawRect: and then tell us why it is being
called. Seriously, do you have some philosophical objection to using
the debugger ? Isn't this what it's for ?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
You've also eliminated all the code from your post that might give us
a clue what could be going on. drawRect: on its own won't loop
infinitely, so it *must* be something else. Have you tried removing
the NSLog call - it's the only thing according to your post that is
left, but since that s