Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Key-value question



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:
> > http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
> >
> > 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.