• 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 Key-value question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Key-value question


  • Subject: Re: Core Data Key-value question
  • From: "Bryan Zarnett" <email@hidden>
  • Date: Sun, 19 Feb 2006 12:18:41 -0500

Thanks Volker!  That made it all work perfectly.

Good Sunday so far!!

On 2/19/06, Volker Runkel <email@hidden> wrote:
> Hi Bryan,
>
> the solution is to use NSSet... which is fairly easy in IB:
>
> Bind StudentsArrayController "ContentSet" to
> DepartmentArrayController.selection.student (where student is the
> relationship). Now you can bind your student table to
> StudentAC.arrangedObjects ...
>
> I wrote this without looking into my own code, so if I missed
> anything important, please call back!
>
> Volker
>
> Am 19.02.2006 um 14:47 schrieb Bryan Zarnett:
>
> > I have created two models both of which have inverse relationships
> > to the other.
> >
> > "Department" has a relationship "students" which is a
> > to-many-relationship to "Student". Student has a relationship
> > "departments" which is a to-many relationship to "Department"
> >
> >
> > My goal is to have two tables, one that shows all the departments and
> > the other one that shows all students for that department.
> >
> > In my GUI, I have an NSTableColumn setup so that it displays all the
> > departments in the system. This is setup to the array controller
> > Departments and works nicely.
> >
> > The "Department" drop down is not working very nice. My assumption is
> > that I should be doing the following:
> >
> > 1) Have the "Students" NSTableColumn bind to the department array
> > controller.
> > 2) Put the controller key to "arrangedObjects"
> > 3) Put the model key path to "students.student.firstName"
> >
> > This doesn't seem to work. Can anyone provide any help on this?
> >
> > Regards,
> > Bryan
> >  _______________________________________________
> > 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
>
>
>
>
 _______________________________________________
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

References: 
 >Core Data Key-value question (From: "Bryan Zarnett" <email@hidden>)
 >Re: Core Data Key-value question (From: Volker Runkel <email@hidden>)

  • Prev by Date: Re: Core Data Key-value question
  • Next by Date: NSDrawer bug in interface builder?
  • Previous by thread: Re: Core Data Key-value question
  • Next by thread: Re: Core Data Key-value question
  • Index(es):
    • Date
    • Thread