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

Core Data Key-value question


  • Subject: Core Data Key-value question
  • From: "Bryan Zarnett" <email@hidden>
  • Date: Sun, 19 Feb 2006 08:47:30 -0500

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

  • Follow-Ups:
    • Re: Core Data Key-value question
      • From: Greg Herlihy <email@hidden>
    • Re: Core Data Key-value question
      • From: Volker Runkel <email@hidden>
    • avoiding to open window multiple times
      • From: "Joris Mans" <email@hidden>
    • freeing data when closing window
      • From: "Joris Mans" <email@hidden>
  • Prev by Date: Re: Cyclic import dependency causes compilation errors
  • Next by Date: NSSearchField (configuring cancel action)
  • Previous by thread: Re: Cyclic import dependency causes compilation errors
  • Next by thread: freeing data when closing window
  • Index(es):
    • Date
    • Thread