Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSWindow: Passing mouse events through window to whatever is underneath

Is it possible to pass mouse events through an NSWindow to whatever is behind it (even if it is a window from another application)?

I am using NSWindow to create a desktop overlay, but would like to still be able to interact with other windows, even if they are behind my overlay window.

like image 484
carloe Avatar asked May 03 '11 19:05

carloe


1 Answers

IIRC, you can just use [window setIgnoresMouseEvents:YES].

like image 174
Chuck Avatar answered Oct 29 '22 17:10

Chuck