master-detail: binding array controller to the attribute of selection of master array controller
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