In my app, i’ve multiple table views. I’ve set one up so that the script is a delegate of it, so I can get notifications when the selection in the table changes. I can log the object sending the notification just fine, but since I’m eventually going to have multiple table views feeding into tableViewSelectionDidChange:(sender), I’d like to have a reliable way to figure out which one. I tried some of the tricks in https://macscripter.net/viewtopic.php?id=34754, including:
if (sender's object) = (my theHostTable) then
log "host table"
end if
and
if (sender's object) = (AppDelegate's theHostTable) then
log "host table"
end if
but neither of those seem to work.