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: Yevgeniy Goldberg <email@hidden>
- Date: Fri, 2 Mar 2007 12:20:17 -0600
I intent on always using one persistent data store.
The reason I'm running a setManagedObjectContext upon my Document's
initialization is to make sure that the document opens with the
content of the existing data store instead of showing a blank
document window
I want to be able to save any changes that users make as well as any
new additions to the same original data store.
Please, let me know if you have any other questions.
I could also provide a copy of the actual code.
Thanks a lot for helping me!
Eugene.
On Mar 2, 2007, at 11:21 AM, mmalc crawford wrote:
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