• 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
Re: [iPhone] Why so many calls?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] Why so many calls?


  • Subject: Re: [iPhone] Why so many calls?
  • From: Phil Curry <email@hidden>
  • Date: Tue, 27 Oct 2009 17:22:29 -0700

But can anyone explain all the other duplicate calls?

Why does it matter? If you have eight or nine sections it makes perfect sense. Or you could have one section and it needs to draw multiple times, and whoever designed the API didn't want to go through the expense of a KVO observation, instead asking the delegate for the header/footer each time it needed it.

But none of that matters.
Kyle-

But, as I thought I explained in the original post, the table only has 2 sections, 1 with 2 rows and 1 with 1 row.
The table is only being loaded once. So why does it take:


9 tableView:titleForHeaderInSection: calls for 2 sections
8 tableView:titleForFooterInSection: calls for 2 sections
2 numberOfSectionsInTableView: calls for a single load

In a table of this size, you're right - "Why does it matter".
But what if my real table has 99 sections? Why should I get bogged down with 800-900 calls for section header titles and section footer titles.
Seems like an incredible waste of effort. Just curious if anyone knows why this happens. If you don't know why, just say so.


I happen to live in a world of disturbing images. What can I say?
-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: Corbin Dunn <email@hidden>
    • Re: [iPhone] Why so many calls?
      • From: Bryan Henry <email@hidden>
    • Re: [iPhone] Why so many calls?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Strange behaviour with NSTableView binded to NSArrayController with NSSet as content
  • Next by Date: Adding new Core Data objects through a form
  • Previous by thread: Re: [iPhone] Why so many calls?
  • Next by thread: Re: [iPhone] Why so many calls?
  • Index(es):
    • Date
    • Thread