• 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
How to properly clear subordinate arrayControllers in master-detail hierarchy?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: removeObserver with keyPath nil
  • Next by Date: Getting mouse events in view placed in NSTableRowView
  • Previous by thread: Re: Tooltip with Custom bg color/image and text color
  • Next by thread: Getting mouse events in view placed in NSTableRowView
  • Index(es):
    • Date
    • Thread