Re: Bound array item is repeatedly copied and collected while scrolling table view
Re: Bound array item is repeatedly copied and collected while scrolling table view
- Subject: Re: Bound array item is repeatedly copied and collected while scrolling table view
- From: Rick Hoge <email@hidden>
- Date: Tue, 7 Jul 2009 16:11:41 -0400
...
I noticed that, while I scrolled in the tableview, many copies of
these large objects were being created and then immediately
collected.
...
NSCells used to display table content copies the object it display.
Instead of binding the cell value to your object directly, bind it
to its description or an other relevant property.
Thanks for this suggestion, which clarifies things a bit. I thought
about binding to 'description', but I want to be able to edit items in
the table view when appropriate (it is not for my dataset object). I
use the 'editable' binding to prevent edits to complex objects which
shouldn't be edited in a collection view.
Cheers,
Rick
_______________________________________________
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