Domanda
How to create a NSButton with non-square "hit area"?
Example:
Thanks.
Soluzione
You could probably subclass NSButton and override hitTest:
to return nil when outside the area you want to be clickable. (Return [super hitTest:]
when inside.)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow