• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[iPhone] Why so many calls?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iPhone] Why so many calls?


  • Subject: [iPhone] Why so many calls?
  • From: Phil Curry <email@hidden>
  • Date: Mon, 26 Oct 2009 09:34:06 -0700

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [iPhone] Why so many calls?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Passing arrays via WSMethodInvocationInvoke() [WebServicesCore]
  • Next by Date: FSMountServerVolumeSync Authentication problem
  • Previous by thread: Re: programmatically determining whether a system would run a GC only app
  • Next by thread: Re: [iPhone] Why so many calls?
  • Index(es):
    • Date
    • Thread