I have a fullscreen transparent window. When the user clicks on it I want the click to be sent to what's underneath the window. How would I do so?

有帮助吗?

解决方案

Setting IgnoresMouseEvents to YES should do the trick..

  • (void)setIgnoresMouseEvents:(BOOL)ignoreMouseEvents

Specifies whether the window is transparent to mouse clicks and other mouse events, allowing overlay windows.

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/setIgnoresMouseEvents:

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top