I am developing a macOS application, and I have a subclassed NSSplitView that I sometime completely disable by reducing its alphaValue, as the following happens in the subclass:
override func hitTest(_ point: NSPoint) -> NSView? {
if self.alphaValue == 1.0 {
return super.hitTest(point)
}
return nil
}
I know this is just a detail, but nevertheless I would like to solve it. The SplitView correctly ignores mouse clicks because of the overridden method, but when the mouse enters the separator view, the cursor duly changes to reflect this, and displays the separator movement cursor. Can I temporarily prevent this from happening ? it is a very minor thing, but, at this point, I am also curious. Thanks for any help.