I have a custom View NSView
and I want to disable userinteraction, but I'm not sure how to do this.
My idea was:
[myView setEnabled:NO];
but it's wrong and doesn't work. How can I make it so that, it's just visible for the user, and nothing else?
NSView doesn't have either setEnabled: or setIgnoresMouseEvents:
Implement the hitTest:
method to return nil
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With