• 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
master-detail: binding array controller to the attribute of selection of master array controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master-detail: binding array controller to the attribute of selection of master array controller


  • Subject: master-detail: binding array controller to the attribute of selection of master array controller
  • From: Izidor Jerebic <email@hidden>
  • Date: Wed, 23 Jul 2008 18:11:56 +0200

Hello!

I have a very simple (one would think) master-detail arrangement: there is a domain object, which has several items, each of items has several parts.

In the GUI window which represents domain object, one array controller is bound to FileOwner.items (file owner is a domain object), and this is displayed in NSTableView and it works fine. Then there is another array controller, which is bound to first array controller's selection and model key path 'parts'. This is displayed in NSCollectionView.

The problem is that when selection is changed in NSTableView, nothing at all changes in NSCollectionView. I have inserted NSLog in the 'parts' method and it is called exactly once - when the nib is loaded....

So the parts are displayed only once for the first selected item, and afterwards nothing changes, despite the change of selection.

Now, can somebody suggest what am I doing wrong or how can I debug this not-working setup?


Thanks in advance,

izidor

_______________________________________________

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


  • Follow-Ups:
    • Re: master-detail: binding array controller to the attribute of selection of master array controller
      • From: Izidor Jerebic <email@hidden>
  • Prev by Date: Re: NSLog on releasebuild
  • Next by Date: Re: Inverse Regex Library?
  • Previous by thread: Re: Checking for KVC compliancy
  • Next by thread: Re: master-detail: binding array controller to the attribute of selection of master array controller
  • Index(es):
    • Date
    • Thread