I have added an NSTableView to a form in Interface Builder. It is within a tab view item. I am trying to add items to the table view but it is not working. This is the code I am using:
set thetableView to table view "tableview1" of scroll view "scrollview1" of tab view item "Status" of tab view "tabs" of window "mainwindow"
set content of thetableview to {"Hello","World"}
Try setting the “contents”, rather than the ‘content’.
set contents of thetableview to {"Hello","World"}
For some objects, the two are functionally interchangable, but for others there is a difference in what is returned. Also note that the ability to set the contents of a table in this way was introduced in 10.4, so if you’re still on 10.3 this syntax will never work.