I’m trying to build a hello world application with Xcode 4.3.
So far, I have a TableView (dragged and dropped from the objects list) and a TableViewCell (also dragged and dropped from the objects list).
I have an array too, and my TableView works and gets the data from array, but how can I reload the TableView’s data? I tried [self.tableView reloadData]; but it doesn’t work. When I type [self., tableView is not in my options…
To have the NSTableView as a property of your class, you have to declare it as one.
In the interface of your class add:
In the implementation add:
Then in Interface Builder connect the table view to the tableView outlet of your class, by right clicking on “File’s Owner” and dragging a line from “tableView” to your table view.