NSView覆盖将鼠标事件传递给基础子视图? [英] NSView overlay passes mouse events to underlying subviews?

查看:79
本文介绍了NSView覆盖将鼠标事件传递给基础子视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个加载叠加层,该叠加层应阻止所有AppKit控件关闭,直到完成加载为止。但是,该视图似乎将所有鼠标事件传递给了底层。

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?

推荐答案

我建议改为使用子窗口。

这篇关于NSView覆盖将鼠标事件传递给基础子视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆