NSTreeOutline display glitches; how to troubleshoot?
NSTreeOutline display glitches; how to troubleshoot?
- Subject: NSTreeOutline display glitches; how to troubleshoot?
- From: "Doug Knowles" <email@hidden>
- Date: Sun, 16 Jul 2006 11:36:48 -0400
Hi, all,
I have an NSTreeOutlineView that exhibits some weird behaviors as the
selection changes: when I change the selected row, usually with the
cursor keys, certain rows in the outline view go blank.
The rows that go blank have a couple of common characteristics:
- I use outlineView:willDisplayCell... to adjust the row text to bold;
commenting out the style change had no effect.
- The affected rows are backed by a particular class of object created
by my NSTreeController; I instrumented the class, and it seems to be
returning the correct values during the display update.
A few other observations:
- The problem occurs nearly 100% of the time when I use the arrow keys
to change the selection; clicking to select rows exhibits the problem
sporadically.
- With no attempt to compensate for the glitch, the rows usually
disappear when they are deselected.
- I tried invoking setNeedsDisplayInRect to re-render deselected rows,
but this just moved the problem to other rows in the view, apparently
at random.
- In desperation, I tried the brute force technique of calling
setNeedsDisplay on the entire view when a deselection occurs, but now
the row after the selected row goes blank; this seems to happen when
the selected row's highlighting is rendered.
Any thoughts, either on what might be causing the glitches or
techniques to address them would be appreciated.
TIA,
Doug K
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden