문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top