Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试自定义 NSWindow,今天得到了我的第一个透明自定义窗口。不幸的是,我只能抓住像素可见的窗口。有没有办法在窗口范围内的任何地方抓住它?
用户如何知道界限在哪里?无论如何,解决方案是[theWindow setIgnoresMouseEvents:NO]。
[theWindow setIgnoresMouseEvents:NO]