Make NSView NOT clip subviews outside of its bounds

后端 未结 6 1170
感动是毒
感动是毒 2020-12-13 19:30

Is it possible to make an NSView not clip its subviews that are outside of the bounds? On iOS I would simply set clipsToBounds of my

6条回答
  •  执笔经年
    2020-12-13 20:10

    I was able to solve this by overriding wantsDefaultClipping of the subviews to return NO.

提交回复
热议问题