Re: Core Data Key-value question
Re: Core Data Key-value question
- Subject: Re: Core Data Key-value question
- From: Volker Runkel <email@hidden>
- Date: Sun, 19 Feb 2006 17:41:30 +0100
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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