On MacOS How to Make the NSView(backgroundColor alpha:0.3) not respond to a mouse click event。 Allow events to pass to other bottom Windows
If the full transparency default does not respond to events, if the alpha does not equal 0.0. Will prevent event delivery
I found a way to do this, but this will also ignore other mouse events! Is there any other way? Only mouse click events are penetrated
[self.window setIgnoresMouseEvents:true];
Thanks to this friend for telling me,Override this metho
Override - (NSView *)hitTest:(NSPoint)aPoint
but if this method return nil。 it will not receive any events any more, including buttons on the view. This is not what I want