• 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
CoreData and multiple to-many relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData and multiple to-many relationships


  • Subject: CoreData and multiple to-many relationships
  • From: Thom McGrath <email@hidden>
  • Date: Wed, 19 Oct 2005 23:53:41 -0400

I have a document-based CoreData application which has (among others) two Entities: Entry and Category. Entry has a to-many relationship to Category known as categories. Category also has a to-many relationship to Entry known as entries. So an entry can have any number of categories, and (of course) a category needs to know of many entries.

My problem comes from application logic. Category assignment happens from a drawer which has a list of all the categories and the controls to add and remove them. The list (a NSTableView) has two columns, one for the category name and one with checkboxes so the user can select which categories the selected entry belongs to. My problem lies in this single column. I cannot figure out the binding for that column. The entries and categories are managed by NSArrayControllers known as EntriesController and CategoriesController respectively.

I've been fumbling with this for a while now and cannot figure it out. Anybody have an idea for a solution?

--
Thom McGrath
Lead Programmer of The ZAZ Studios
<http://www.thezaz.com>

_______________________________________________
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: CoreData and multiple to-many relationships
      • From: John Timmer <email@hidden>
  • Prev by Date: Re: [NSMutableDictionary setObject:forKey:] problem
  • Next by Date: Re: NSTableView, variable row heights, small fonts
  • Previous by thread: Re: Universal Binaries and supporting legacy OS
  • Next by thread: Re: CoreData and multiple to-many relationships
  • Index(es):
    • Date
    • Thread