All,
I have 2 tables and I want to execute a piece of code when a user double-clicks a row in these tables.
I have declared the following in my awakeFromNib function.
aTable1's setDoubleAction_("table1DoubleClicked")
aTable2's setDoubleAction_("table2DoubleClicked")
Both these selectors have same piece of code. Is it possible to pass same selector as argument to the setDoubleAction_ method, but with a parameter ?
I thought the following would work, but it doesn’t.
aTable1's setDoubleAction_("tableDoubleClicked(1)")
aTable2's setDoubleAction_("tableDoubleClicked(2)")
Is there a way to make this work?