I want to create a custom action connection in a class, which should be visible in Interface Builder. For example - I add action / target properties to NSView
class just like this:
weak open var object: AnyObject?
open var something: Selector?
The action is something
and the target is object
.
Now I want in Interface Builder to have 'Send Action' link / connection available for something
and to be able to make connection to a @IBAction
method to some class (for example the controller of the view), just like it can be done for a simple NSButton
. Maybe this is not possible, or maybe I must add some keywords in front of the custom action / target pair, the same way we need to make a property @IBInspectable
to appear in Attributes Inspector.
Any help is welcome ;-)