Am 25.06.2009 um 10:54 schrieb WT:

On Jun 25, 2009, at 10:26 AM, Alexander Spohr wrote:

Why didn’t you put the cell into the controllers nib?
Make an outlet in your controller to reach the cell and just return it when you need it?

Because -tableView:cellForRowAtIndexPath: needs to return a different cell object for each visible row. Your code above returns always the same object, the one table view cell archived in the nib, which means that changing the data in one cell would change the data in all visible cells, and all visible cells would have the same data all the time.

Of course, you are right. I forgot that the OP wanted something like an accessory which needs to be repetitive.

        atze

_______________________________________________

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