Here is the layout of my view:
The blue bit is an NSTextView
, and the gray bit is an NSVisualEffectView
. The visual effect view is set to blend with whatever's behind that view within the window. I want the text view to be able to scroll behind the visual effect view so that it blends with the status label and the button. I have tried the following:
- In the storyboard, just make the text view go behind the visual effect view. However, the text on the very bottom will just get covered up as the text view won't know that the visual effect view is there and just stops scrolling under it.
- From this question, I tried overriding
wantsDefaultClipping
,alignmentRectInsets
as well as usingCALayer
'smaskToBounds
property on the text view's enclosing scroll view. But all of those doesn't work either.
Did I do something wrong here? What else should I do to make either of the 2 options work?
Thanks