keyDown not being called

后端 未结 2 719
误落风尘
误落风尘 2020-12-10 17:39

I have a custom NSView called SurfaceView. It is the contentView of a NSWindow and it handles basic events like mouse click and drawing. But don\'t matters what I do, it doe

2条回答
  •  醉酒成梦
    2020-12-10 17:59

    In addition to answer: Check in your IB checkbox for NSWindow.

    Title Bar should be checked. It the similar to NSBorderlessWindowMask

    enter image description here

提交回复
热议问题