Re: CoreData to-many relationships
Re: CoreData to-many relationships
- Subject: Re: CoreData to-many relationships
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 21 May 2005 11:29:19 -0700
On May 21, 2005, at 11:04 AM, Scott Stevenson wrote:
Messages controller:
managedObjectContext -> AppDelegate, managedObjectContext
contentSet = Mailbox Controller, selection.messages
Note that in this case you should probably also enable the Deletes
Objects On Remove option for the contentSet binding. This will mean
that when a message is deleted, on save it is actually removed from
the store rather than just from the relationship. Otherwise you'll
have messages in the store not assigned to any mailbox (this may also
break a relationship integrity constraint in your model -- if the
[Message] -> [Mailbox] relationship is mandatory -- and prevent you
from saving in the first place...).
mmalc
_______________________________________________
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