CoreData: "nil is not a valid persistent store" and can't save
CoreData: "nil is not a valid persistent store" and can't save
- Subject: CoreData: "nil is not a valid persistent store" and can't save
- From: Norio Ota <email@hidden>
- Date: Tue, 9 Oct 2007 12:19:58 +0900
Hi guys,
The phenomenon was:
1) make new document and then save it as one of three types (binary,
SQL, MXL), the file is saved.
2) open a file which is a custom-formatted file and then save it as
like above, debug console shows "nil is not a valid persistent
store", the file doesn't get saved.
My managed object model has two entities: Department and Employ.
Each managed object of those types is created by using
insertNewObjectForEntityForName:inManagedObjectContext:.
The managed object context passed as the second parameter is the one
from [myDocument managedObjectContext].
I don't override the method 'managedObjectContext'.
I have a nib for displaying lists of the name of departments and of
employees. The custom-formatted file seemed to be read properly
because the lists showed the names as I expected.
But when I tried to save it as one of the types, debug console showed
"nil is not a valid persistent store", and nothing was saved.
I must be missing something important. Any suggetions would be very
appreciated.
Thank you for reading this poor explanation.
Norio Ota
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden