• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem binding to recreated NSCollectionView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem binding to recreated NSCollectionView


  • Subject: Problem binding to recreated NSCollectionView
  • From: David Carlisle <email@hidden>
  • Date: Wed, 14 May 2008 14:44:56 -0600

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:
This email sent to email@hidden


  • Prev by Date: Launching Cocoa Application externally (Yann Disser)
  • Next by Date: Re: Bypassing Interface Builder
  • Previous by thread: Re: Launching Cocoa Application externally (Yann Disser)
  • Next by thread: WWDC ticket needed
  • Index(es):
    • Date
    • Thread