Re: NSTreeOutline display glitches; how to troubleshoot?
Re: NSTreeOutline display glitches; how to troubleshoot?
- Subject: Re: NSTreeOutline display glitches; how to troubleshoot?
- From: "Doug Knowles" <email@hidden>
- Date: Sun, 16 Jul 2006 12:17:09 -0400
Follow-up: The problem is definitely related to selection
highlighting. I added a way for invoke setNeedsDisplay on the outline
view manually; when invoked, the rows after the selected rows go
blank.
For completeness, I should probably also note that I have implemented
outlineView:heightOfRowByItem to provide variable-height rows for this
view, but I'm seeing the problem even with the method commented out.
Doug K;
On 7/16/06, Doug Knowles <email@hidden> wrote:
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