Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem binding to recreated NSCollectionView



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@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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.