2 table views

Hey All,
I’m creating an app that has 2 table-views in 2 separate tabs respectively. The data source for the two tables are plist files.
I know that I have to use 2 mandatory methods after reading the “Book List Project” post by Craig Williams:

  1. tableView_objectValueForTableColumn_row_
  2. numberOfRowsInTableView_

This is the code:

property NSMutableArray : class "NSMutableArray"
script MyTestAppDelegate

property parent : class "NSObject"
property aTableView : missing value
property aTableView1 : missing value
(*
Other properties
*)


property theDataSource : {}  # Data Source for Table 1
property theDataSource1 : {} # Data Source for Table 2
(*
 Rest of the Code
*)
end script

How do I use the tableView_objectValueForTableColumn_row_ and numberOfRowsInTableView_ methods in this case? Acc to XCode Documentation, these methods are invoked by the Table view.

How do I invoke these methods on ‘aTableView’ and ‘aTableView1’ ?

Is there a reason why you are using data sources rather than bindings to populate your tables? I think that bindings make setting up table views a lot easier.

Ric