I have an NSView containing multiple subviews. One of those subviews is transparent and layered on top.
NSView
I need to be able to click through this view dow
Here's a Swift 5 version of figelwump's answer:
public override func hitTest(_ point: NSPoint) -> NSView? { // pass-through events that don't hit one of the visible subviews return subviews.first { subview in !subview.isHidden && nil != subview.hitTest(point) } }