Re: Crash when saving my Core Data context
Re: Crash when saving my Core Data context
- Subject: Re: Crash when saving my Core Data context
- From: Chris Hanson <email@hidden>
- Date: Mon, 20 Jun 2005 00:38:38 -0700
On Jun 19, 2005, at 5:49 PM, Joseph Jones wrote:
I currently have a project that takes an XSD file, generates a core
data object graph and populates the graph from the associated XML.
Graph creation works fine. Graph population works fine. Saving the
graph, however, does not work so well.
How do you create your object graph? Do you simply create managed
objects using +[NSEntityDescription
insertNewObjectForEntityForName:inManagedObjectContext:] and relate
them to each other? Managed objects returned from that method are
autoreleased.
I do have inverse relationships on all my objects so that you can
completely navigate the model. I am not sure if that is a bad thing
or not. If it is that seems to be a problem with Core Data. :-(
It is neither a good thing nor a bad thing. If there are inverse
relationships, it means that Core Data can maintain them for you.
-- Chris
_______________________________________________
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