Re: CoreData stationary documents
Re: CoreData stationary documents
- Subject: Re: CoreData stationary documents
- From: "I. Savant" <email@hidden>
- Date: Mon, 10 Apr 2006 08:46:48 -0400
I believe you may need to use NSPersistentStoreCoordinator's -
migratePersistentStore:toURL:options:withType:error: method, if I'm
not mistaken. You'd open the "template" document then migrate its
contents to a new persistent store.
If I *am* mistaken, someone please enlighten me.
--
I.S.
On Apr 8, 2006, at 4:43 PM, Pierre Bernard wrote:
Hi!
I am working on a CoreData document based application. I am trying
to treat a select few documents as stationaries/templates.
What I do is that I call [self setFileURL:nil] from
readFromURL:absoluteURL ofType:typeName error:outError
All seems well. When saving I am asked for a new location.
Trouble is that upon saving I find an empty file at the target
location. Indeed changes were saved to the original stationary.
TIA for your help
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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