scoll a table?

I know we can use call method to scroll a text view (although it didn’t work with arbitrary target position yet, or I’m still missing something), but how about tables? How do I scroll down to a certain row of a table? Or just to scroll down to the selected row?

Thank you!

This one is solved now: using call method scrollRowToVisible: I can scroll a table to a particular row (note rowIndex is 0-based):


call method "scrollRowToVisible:" of object myTable with parameter rowIndex

However a new problem remains: in a sorted table, the integer index returned by “selected row” does not reflect the sorted position of a row, so using scrollRowToVisible: will scroll to the wrong row.

This is a general problem to all sorted tables, and it seems that so far there’s no clean solution, other than hacking around using a sorted file.