How to properly clear subordinate arrayControllers in master-detail hierarchy?
How to properly clear subordinate arrayControllers in master-detail hierarchy?
- Subject: How to properly clear subordinate arrayControllers in master-detail hierarchy?
- From: Erik Stainsby <email@hidden>
- Date: Fri, 23 Nov 2012 14:08:30 -0800
I have a windowController which swaps two views, a list versus a single record's detail view.
The detail view contains a hierarchy of arrayControllers which each support table views.
At the top level of the detail view is an arrayController which contains the current selection from the list view.
Each subordinate arrayController is bound to this top singleItemArrayController.selection.aDetailList array.
NSWindow
ListView
arrayController
objects
DetailView
singleItemArrayController
selection
subordArrayController1
selection.subordArray1
subordArrayController2
selection.subordArray2
This works fine to a point, but fails to clear the subordinate array controllers when the singleItemArrayController has no selection, or even just when it changes.
How ought I go about flushing the current selection content from the subordinate array controllers?
- Erik
_______________________________________________
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