CoreData and multiple to-many relationships
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