سؤال
How to create a NSButton with non-square "hit area"?
Example:
Thanks.
المحلول
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.)
لا تنتمي إلى StackOverflow