• 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: Bound array item is repeatedly copied and collected while scrolling table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Bound array item is repeatedly copied and collected while scrolling table view (From: Rick Hoge <email@hidden>)
 >Re: Bound array item is repeatedly copied and collected while scrolling table view (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Bound array item is repeatedly copied and collected while scrolling table view
  • Next by Date: Re: CoreData deleteAll of kind
  • Previous by thread: Re: Bound array item is repeatedly copied and collected while scrolling table view
  • Next by thread: MVC....brief question
  • Index(es):
    • Date
    • Thread