How do I set the action attribute in the UI designer to a object handler method rather than a function? I see how to set the action attribute of a view such as Button to a function such as 'button_tapped' in code outside of the UI Designer, but I want to both use the UI editor AND code in a object oriented fashion. I therefore want to associate my handler METHOD to the action attribute. In code it is simple - you create an instance of your handler class that contains the handler method and then you bind the Button view's action attribute to that instance.method.
But is is possible to set this in the UI editor, which nicely separates interface from implementation, given that in code its the actual instance name you are setting as in myButton.action = anInstancePreviouslyJustCreated.method? I tried playing with creating the instance of the handler class at different points in the code but no matter what I try I can not get the handler method to be called. What would the value in the UI editor be exactly for the action attribute?