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.
我有一个全屏透明窗口。当用户单击它时,我希望将单击发送到窗口下方的内容。我该怎么做?
将 IgnoresMouseEvents 设置为 YES 应该可以解决问题。
指定窗口是否对鼠标单击和其他鼠标事件透明,允许覆盖窗口。
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/setIgnoresMouseEvents: