Square NSButton

How to create an NSButton with a non-square "hit area"?

Example:

enter image description here

Thank.

+3
source share
1 answer

Perhaps you could subclass NSButton and override hitTest:to return zero when outside the area you want to click. (Bring back [super hitTest:]when inside.)

The docs are here.

+2
source

All Articles