• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Table View selectedColumn returning -1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Important request, participation in software development study
  • Previous by thread: Important request, participation in software development study
  • Index(es):
    • Date
    • Thread