Question

My application has a NSOutlineView that was initially configured as a source list, because source lists are prettier. However, I decided that I'd rather have the normal tree behavior, so I switched the highlight mode from "Source List" to "Regular". Now the "Show" buttons on the right of top-level cells are gone in favor of familiar triangles to the left, but an unexpected issue arose: it seems that the background scrolls with the contents of the view.

Animated GIF showing the problem with the background

The issue disappears if I select "Source List" again in the Highlight setting, but I'd rather have just the background and not the source list behavior.

How can I fix that? I didn't write a single line of that background's code.

Was it helpful?

Solution

I've seen this kind of error before. The background can become messy when switching back from SourceList highlighting. I usually just remove the outline, drags in a new one and set DataSource and Delegates (+ Class) again.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top