NSView overlay passes mouse events to underlying subviews?

你。 提交于 2020-01-25 06:18:11

问题


I have a loading overlay which is supposed to block all the AppKit Controls off untill loading is done. However the view seems to be passing all the mouse events to the underlying layers. How to disable that?


回答1:


I suggest using a child window instead.



来源:https://stackoverflow.com/questions/3522410/nsview-overlay-passes-mouse-events-to-underlying-subviews

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!