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:
- tableView_objectValueForTableColumn_row_
- 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’ ?