• 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 Lists with NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Master - Detail Lists with NSArrayController


  • Subject: Master - Detail Lists with NSArrayController
  • From: Todd Blanchard <email@hidden>
  • Date: Wed, 22 Jun 2005 08:32:06 -0700

None of this is using coredata.

I have an array controller (FirstController) that has its content array bound to arbitraryObject.parents. I have a table view bound to this thing. It works.

Parent has a method that returns an array called children.

I have a second array controller that has its content array bound to FirstController.selection.children. I also have a table view bound to this thing.

This does not work. I have tried various combinations of bindings to try to bind the children array of the one selected object in FirstController to the contentArray of SecondController and I seem to get various random objects or nothing appearing in the second table.

This should not be this hard.

To get the children array of the selected parent I have tried binding contentArray in SecondController to:

FirstController.selection.children
FirstController.selectedObjects.lastObject.children

and various similar ideas.  I'm stumped.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: No binding for plain old string in NSTextView?
  • Next by Date: Re: NSOutlineView not always showing "expand triangle"
  • Previous by thread: Re: No binding for plain old string in NSTextView?
  • Next by thread: NSUnarchiveFromDataTransformer - keyed archiver?
  • Index(es):
    • Date
    • Thread