Re: Help needed with saving Core Data app data
Re: Help needed with saving Core Data app data
- Subject: Re: Help needed with saving Core Data app data
- From: mmalc crawford <email@hidden>
- Date: Fri, 2 Mar 2007 09:21:44 -0800
On Mar 2, 2007, at 7:33 AM, Yevgeniy Goldberg wrote:
Greetings!
In my Core Data persistent document based application I have a need
to open an existing data store on application startup as well as to
allow saving any changes to the same original data store
I was able to implement the data loading part by programmatically
establishing a managedObjectContext and passing it to the
setManagedObjectContext method of my document.
It's not clear why you're adding a new context.
The challenge: After some changes have been made and a "Save" option
is selected from the menu, the application prompts the user for a
file name to save the data to. If the original file name is given
then the application prompts to override the original file.
How can I change this behavior and enable my application to save
changes to the original data store without overriding it.
I don't understand what you mean.
Do you want to add new data to an existing store but leave the
original data intact?
Do you want to use two stores, one for each document, one shared
global store?
Do you want some other configuration?
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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