I’d like to have a
CALayer “float” over my scroll view’s documentView. That is, it shouldn’t move during scrolling.
If I add a CALayer to my
NSSCrollView‘s layer, the added layer is masked by the clipview: in only shows where the scrollers are.
Adding the layer to the clipview doesn’t work either. It’s masked.
I could add the layer to the document view and compensate the scrolling so that it stays in place, but that would be inelegant.
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.