Table View selectedColumn returning -1
Table View selectedColumn returning -1
- Subject: Table View selectedColumn returning -1
- From: waynemelrose via applescriptobjc-dev <email@hidden>
- Date: Tue, 18 Feb 2020 14:15:40 +1000
Hi all,
I’ve currently got a need to return the EXACT cell contents of a table. My way
of thinking is to get the current row, then use the index of the current column
to get the exact cell content, so…
set selectedJob to selectedObjects()
Would return the current row, then if I can get the current column, I’ll be
able to target the cell.
Here’s what I have currently
on tableViewSelectionDidChange:aNotification
tell array_TableContents
set selectedRow to selectedObjects()
end tell
set c to aNotification's selectedColumn()
log "Selected Column: "
log c
end tableViewSelectionDidChange
So the problem I’m facing is that the selectedColumn() is only returning a -1
.. I might be missing something, but I thought the point was to return the
selected column?
Thanks
Wayne
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden