Re: Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Rick Hoge
... 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 t

Re: Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Jean-Daniel Dupas
Le 7 juil. 09 à 14:24, Rick Hoge a écrit : I have a nib file in which entries in an NSTableView are bound to an NSMutableArray via an NSArrayController. It is used in an application running under garbage collection. The array items are NSDictionaries, and one of these dictionaries con

Re: Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Rick Hoge
... The array items are NSDictionaries, and one of these dictionaries contains a large dataset object that consumes a lot of memory. I noticed that, while I scrolled in the tableview, many copies of these large objects were being created and then immediately collected. It's

Re: Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Quincey Morris
On Jul 7, 2009, at 05:24, Rick Hoge wrote: I have a nib file in which entries in an NSTableView are bound to an NSMutableArray via an NSArrayController. It is used in an application running under garbage collection. The array items are NSDictionaries, and one of these dictionaries contai

Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Rick Hoge
I have a nib file in which entries in an NSTableView are bound to an NSMutableArray via an NSArrayController. It is used in an application running under garbage collection. The array items are NSDictionaries, and one of these dictionaries contains a large dataset object that consumes a l