Re: drawRect infinite loop -- argh!
Re: drawRect infinite loop -- argh!
- Subject: Re: drawRect infinite loop -- argh!
- From: Brian Hughes <email@hidden>
- Date: Sun, 20 Jul 2008 14:52:57 -0400
- Importance: Normal
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 the run log but I my G5 fans start wailing and when
I step through it , it loops.
Here is the whole sequence in the debugger:'
The drawRect method is being called originally when I go to the tab in the tabView where the custom View is located.
Thread 1
-[LNTab3View drawRect:] at LNTab3View.m:102
-[NSView _drawRect:clip:]
-[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
_recursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
_recursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
_recursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
_recursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
-[NSView displayIfNeeded]
-[NSWindow displayIfNeeded]
-[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
-[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:]
loadNib
_loadNibFile:nameTable:withZone:ownerBundle:]
+[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:]
+[NSBundle(NSNibLoading) loadNibNamed:owner:]
NSApplicationMain
Thread-1
-[LNTba3View drawRect:]
-[NSView _drawRect:clip]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
-[NSView displayIfNeeded]
-[NSWindow displayIfNeeded]
Thread 2
-[LNTab3View drawRect:] at LNTab3View.m:52
-[NSView _drawRect:clip:]
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _lightWeightRecursiveDisplayInRect:]
-[NSButtonCell(NSDefaultButtonIndicatorPrivate) heartBeat:]
-[NSWindow(NSWindow_Theme) heartBeat:]
-[NSUIHeartBeat _heartBeatThread:]
Thread-1
-[LNTba3View drawRect:]
-[NSView _drawRect:clip]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
-[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
-[NSView displayIfNeeded]
-[NSWindow displayIfNeeded]
Thread 2
-[LNTab3View drawRect:] at LNTab3View.m:52
-[NSView _drawRect:clip:]
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _lightWeightRecursiveDisplayInRect:]
_lightWeightRecursiveDisplayInRect2
CFArrayApplyFunction
-[NSView _lightWeightRecursiveDisplayInRect:]
-[NSButtonCell(NSDefaultButtonIndicatorPrivate) heartBeat:]
-[NSWindow(NSWindow_Theme) heartBeat:]
-[NSUIHeartBeat _heartBeatThread:]
And so it begins again.
Maybe the problem is obvious to you guys but it is not to me. Any help would be great.
_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008_______________________________________________
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