New Core Data document
New Core Data document
- Subject: New Core Data document
- From: Chris Idou <email@hidden>
- Date: Thu, 11 Sep 2008 21:05:11 -0700 (PDT)
I need to create a new core data document apart from the Core-data based document framework. (*)
I can't pass nil to NSPersistentStoreCoordinator.addPersistentStoreWithType because that is an error.
So how do I create an in-memory document until such time as it is saved and the user is prompted for the file location?
I thought maybe I could create an in-memory core data document and then migrate it to a URL later, but using the debugger, it appears that the normal core-data based document framework does not do that. (Although it does call migrate for a Save-As situation).
This makes me think this is not the way to do it. So how do I create a core data respository when I don't yet know the URL?
It's at times like this I curse Apple for not making their source code visible.
(*) Because my document format is a directory, and the core data component is only part of it.
_______________________________________________
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