• 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
Re: Core Data/IB questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data/IB questions


  • Subject: Re: Core Data/IB questions
  • From: "Adam Gerson" <email@hidden>
  • Date: Thu, 27 Mar 2008 02:06:34 -0400

On Wed, Mar 26, 2008 at 10:31 PM, Rick Mann <email@hidden> wrote:
>  Question 2: I can see how a text field gets populated when you select
>  an item in the table. How can I get a one table to populate based on
>  the selection in another?
>
Each table should have its own ArrayController if the two tables
represent the data from two different entities. Since you entities are
related I am assuming one entity has a property that is a to-many
relationship to the other entity. Set the ContentSet bindings for
ArrayController2 to be the selection of ArrayController1.

ArrayController2 ContentSet
Bind to = ArrayController1
Controller Key = selection
Model Key Path = (the name of the relationship that represents entity2
in entity1)

This will cause ArrayController2 to always populate the TableView with
the objects selected by ArrayController1

Let me know if that needs to be more clear.

Adam
_______________________________________________

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: Core Data/IB questions
      • From: Rick Mann <email@hidden>
References: 
 >Core Data/IB questions (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Getting a list of all classes, etc...
  • Next by Date: Re: Core Data/IB questions
  • Previous by thread: Core Data/IB questions
  • Next by thread: Re: Core Data/IB questions
  • Index(es):
    • Date
    • Thread