Noob alert. I created a project based on tabbar. The firstViewController I
placed a UITableView (in IB). No problems. However I want to hook that
tableview up so that numberOfRowsInSection, etc. get fired.

In MainWindow.xib I connected the table view with the "Selected First View
Controller". I set the datasource and delegate to the same (right-click on
the tableview and drag to the Selected First View Controller in the
MainWindow.xib window).

Outlets
---------
dataSource    Selected FIrst View Controller
delegate         Selected First View Controller

Referencing Outlets
------------------------
songsTable    Selected First View Controller


In my FirstViewController.m I have:

- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section {

  NSLog(@"numberRows called" );

  return 1;

}

This method never gets called, leading me to know things aren't wired
correctly. I must be missing something simple.??
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to