getting data with out a click

I now understand how to do things with buttons and the like but…

I want to use:

set rowindex to aTableView’s selectedRow() as integer

to return a value simply when the table is clicked -

I feel like i need an

on tableClicked()

and a set atableview’s clicked action to tableClicked - but i can find reference to neither - what do i do?

OLIx

Have a look at NSTableViewDelegate’s tableViewSelectionDidChange: method.