• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help needed with saving Core Data app data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help needed with saving Core Data app data


  • Subject: Help needed with saving Core Data app data
  • From: Yevgeniy Goldberg <email@hidden>
  • Date: Fri, 2 Mar 2007 09:33:48 -0600

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.


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 am using SQlite as my data storage.
Thanks for any help!


Eugene.
_______________________________________________

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


  • Follow-Ups:
    • Re: Help needed with saving Core Data app data
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: Detecting if UI thread is running, and creating a UI thread
  • Next by Date: Re: Set NSTableColumn Arrow up/down
  • Previous by thread: Drawing with layout manager in a non-flipped view
  • Next by thread: Re: Help needed with saving Core Data app data
  • Index(es):
    • Date
    • Thread