Hello all,
I have a form that a user fills out and then the data is saved into a NSTableView table when they click a button. I need the table row of this table entry to be selected upon the user clicking the button. Can this be done?
Any help would be greatly appreciated,
CarbonQuark
Here is my code so far… One of the lines is giving me an error. I need a solution on how to get the row number of a new data row that was just created.
tell application "myApplication"
set dataSource to data source of table view "myTableView" of scroll view "myScrollView" of window "myWindow"
set theRow to make new data row at the end of the data rows of dataSource
-- the following line is giving me the error "myApplication got an error: NSUnknownKeyScriptError"... I suspect that I must reference a row number (integer) of theRow and not the variable theRow
tell table view "myTableView" of scroll view "myScrollView" of window "myWindow" to set selected row to theRow
end tell
CarbonQuark