Have you tried a table with 99 sections to see whether that scaling is really the case?

While I agree that some of those are likely unnecessary calls that could be optimized away, this is all more the subject of an enhancement report for Radar than anything else.

- Bryan

On Oct 27, 2009, at 8:22:29 PM, Phil Curry wrote:

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 (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/bryanhenry%40mac.com

This email sent to bryanhe...@mac.com

_______________________________________________

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