I did this just for grins to see what I came up with. Boy was I surprised!

Here's a listing of the calls made loading a table with 2 sections where the first section has 1 row and the second has 2 rows. Each section has a header title and a footer title.

NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: initWithStyle: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: viewDidLoad NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: viewWillAppear: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: numberOfSectionsInTableView: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: viewDidAppear: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: numberOfSectionsInTableView: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:numberOfRowsInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:numberOfRowsInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:cellForRowAtIndexPath: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:cellForRowAtIndexPath: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:cellForRowAtIndexPath: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection: NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection:

To summarize, there are:
9 tableView:titleForHeaderInSection:
8 tableView:titleForFooterInSection:
2 numberOfSectionsInTableView:
2 tableView:numberOfRowsInSection: -// I hope we all agree
3 tableView:cellForRowAtIndexPath: --// these make sense

But can anyone explain all the other duplicate calls?

Waiting with baited breath.
-Phil
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to