How to add a custom Sent Action for a custom NSControl (NSView, NSButton) in Swift

499 Views Asked by At

I want to define a custom NSControl (or NSView), now the problem is how to add a Sent Action to it.

Sent Actions

As shown in the image, here are one or more Sent Actions for a control in the Connections inspector, for a NSButton, here's only one action, for a NSTableView, here are two actions.

How can I add a new action for my custom control so that it too is listed here?

Thanks.

0

There are 0 best solutions below