SplitView does not support the layer, but tries to use overlay sidebars

This is my first Cocoa experience, and I added the NSSplitViewController as a view of the contents of my NSWindowController. I added two side columns to the NSSplitViewController, but I keep getting the following warning at runtime, and I cannot find anything about what causes this:

WARNING: The SplitView is not layer-backed, but trying to use overlay sidebars..
implicitly layer-backing for now. Please file a radar against this app if you see
this.

EDIT:

Everything is currently in the Storyboards. The NSSplitViewController has three sections: the left sidebar and the main content area, as well as the right sidebar (think Xcode or Pages). In both sidebars, I have one label (for testing only). It is also a runtime warning.

Any understanding of this would be great. Thanks!

+4
source share
1 answer

I just got into the same problem. Since you are using a sidebar and the sidebars are now translucent, the base view should be backed up with a layer. To achieve this, set the split mode to create the main animation layer in the view inspector:

Setting Layer Backed Property

Make sure all other views in your splitview mode are also marked as supported by layers. I have problems redrawing when I forgot it.

+11
source

Source: https://habr.com/ru/post/1615989/


All Articles