Skip navigation.
 
mlProblem binding to recreated NSCollectionView
FROM : David Carlisle
DATE : Wed May 14 22:44:56 2008

I'm trying to recreate NSCollectionView from scratch so I can 
customize the animations.  I have a problem in binding the array 
controller arrangedObjects to the content of MyCollectionView.

In a test situation where I have an instance of both MyCollectionView 
and NSCollectionView bound to the same array controller, when the 
content of the array controller is updated, it will call 
NSCollectionView setContent, content, content, content.  Then it will 
call MyCollectionView content.  It should be calling MyCollectionView 
setContent, but it doesn't.

NSCollectionView is bound to the array controller through IB. 
MyCollectionView is bound manually to the array controller in 
windowDidLoad of the window controller.  At the time of binding, 
MyCollectionView setContent is called, allowing me to create the 
initial content of the view from the array passed to setContent. 
Updates to the content of the array controller are not forwarded to 
MyCollectionView.

F-Script says the content of both views are bound to the same array 
controller at path arrangedObjects.  In the case of NSCollectionView 
it adds that the value class is NSObject, a detail which does not 
appear in the case of MyCollectionView.  The dictionary shows the same 
options in both cases.

Any thoughts?

Related mailsAuthorDate
mlProblem binding to recreated NSCollectionView David Carlisle May 14, 22:44
mlRe: Problem binding to recreated NSCollectionView David Carlisle May 16, 22:18