CoreData to-many relationships
CoreData to-many relationships
- Subject: CoreData to-many relationships
- From: August Trometer <email@hidden>
- Date: Sat, 21 May 2005 12:48:35 -0500
I am trying to learn CoreData techniques. I've gone over
CocoaDevCentral's excellent tutorial. But now, working on my own test
project, I'm not tying something together correctly.
I have 2 Entities, mailbox and message. Each has various attributes.
I've also defined relationships between the two, so mailbox to
message is a to-many relationship and message to mailbox is a one to
one relationship.
Now, in IB, I'm trying to set things up similar to Mail.app. I have a
table of mailboxes. I also have a table of messages. My mailboxes
controller is bound to the AppDelegate/managedObjectContext, as is
mailboxes.
I can add to and remove from both of these just fine. However, it
seems that the messages are not tied to the selected mailbox. The
message table always lists all messages, not messages for a
particular mailbox. In the application's XML data, there is no
indication that any such relationship is being saved, so I don't
think my mistake is in IB.
I've rebuilt the data model several times, trying many different
variations to no avail. Any suggestions where to look?
Thanks!
August
_______________________________________________
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