2
votes

My app has a NSView in a NSWindow which covers the screen and draws a semi-transparent shade on it, above that I've got another NSWindow which contains my app's UI, so the full screen view is designed to fade out background distraction of other windows.

How can I allow mouse clicks on the full screen view to go straight through to the underlying window, which will belong to another app, or even the desktop? Note that I don't want it to keep focus on my app.

1

1 Answers

5
votes

Shady by Matt Gemmell does exactly the same, take a look at the source: http://instinctivecode.com/shady/

It does this by sending the following message to the window:

[window setIgnoresMouseEvents:YES];