Mailing Lists: Apple Mailing Lists

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

Core Data Key-value question



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



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.