Re: KVO and object release timing (for a NSCollectionView)

2010-01-23 Thread Kyle Sluder
On Sat, Jan 23, 2010 at 1:48 AM, vincent habchi wrote: > The problem is that when the represented object is removed from the array > controller, the corresponding NSView is not immediately released. Instead, > there is an implied CAAnimation (or something similar) that makes the NSView > slowly

Re: KVO and object release timing (for a NSCollectionView)

2010-01-23 Thread vincent habchi
Hi Corbin, >> I have a NSButton in C to remove from the array controller the A object it >> represents. However, each time I click on that button, I first get a warning >> telling me that I remove an observed object before releasing the observer, >> and then the program crash, > > If you have

Re: KVO and object release timing (for a NSCollectionView)

2010-01-22 Thread Corbin Dunn
On Jan 22, 2010, at 7:01 AM, vincent habchi wrote: > > I have a NSButton in C to remove from the array controller the A object it > represents. However, each time I click on that button, I first get a warning > telling me that I remove an observed object before releasing the observer, > and t

KVO and object release timing (for a NSCollectionView)

2010-01-22 Thread vincent habchi
Hi again, in my project, I have a managed object A, that has a relationship to an other managed object B, itself in relation with a third object C (which happens to be a CALayer, therefore is not part of Core Data): A -> B -> C. The object A I register in a NSArrayController, whose content is l