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?
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to