I have a simple custom NSWindow subclass without a frame that has a rounded rectangular shape.
In the content view of this window, I added NSScrollView.
How can I get NSScrollView to copy its document view to the rounded rectangular shape of NSWindow?
I tried to subclass NSScrollView by overriding drawRect: and adding a clipping path before calling super. I also tried to subclass the presentation of the document and the presentation of the clip using the same technique, but I cannot get it to pin.
By the way, this is a lion with elastic scroll behavior.
source share