• 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
Re: Core Data Suddenly Losing Changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Suddenly Losing Changes


  • Subject: Re: Core Data Suddenly Losing Changes
  • From: Adam Swift <email@hidden>
  • Date: Mon, 27 Apr 2009 13:36:34 -0700

Is your call to save: the managed object context succeeding?
... what does that managed object context return for hasChanges?
... and are the objects you expect to be saved in the insertedObjects, updatedObjects, deletedObjects collections?
... is save returning an error?


And when you're done saving, does the persistent store file (the one with the path you passed to addPersistentStoreWithType:...) have data in it when you examine it with your favorite text editor?

- adam

On Apr 27, 2009, at 1:11 PM, Walker Argendeli wrote:

Thanks for the suggestion. I tried it, but no go.
It's core data based, but not document-based
I've just got the application loading all its data from core data
I'm running 10.5.6 with Xcode 3.1.2
I'm relatively new to Core Data, but I've been developing this application for a few months now and things have been working fine. I'm sure I made some simple, stupid change, but for the life of me, I can't figure out what and like I said, rolling back to a previous version through subversion didn't solve the problem.


- Walker Argendeli

On Apr 26, 2009, at 10:41 PM, Dave Fernandes wrote:

Did you try deleting your build directory and building from scratch? (Don't just do a Clean All - actually delete the Build directory by hand) Sometimes Xcode caches cause this type of problem. If this doesn't help, you should post more info such as: is it a document-based app? Is more than one file open at the same time? What version of the OS are you running?

Dave

On Apr 26, 2009, at 7:23 PM, Walker Argendeli wrote:

I've been working on a project that uses Core Data for a while now. I recently changed the model and ran it, but I noticed an odd behavior: I wan't informed that the model had changed and was incompatible. I went ahead and deleted the old xml file and when running the application again, it created another file. The only problem is that Core Data has stopped saving. EVery time I open the application, I'm presented with a blank slate. I haven't been religiously using subversion, but I had a commit several days, so I checked out that revision. It has the exact same problem, but I'm certain this wasn't happening a few days. I'm not sure what I could've done that could have caused this, but I'm completely stuck and going crazy trying to get my app to work again.

Thanks,
- Walker Argendeli

_______________________________________________

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


_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: Core Data Suddenly Losing Changes
      • From: Walker Argendeli <email@hidden>
References: 
 >Core Data Suddenly Losing Changes (From: Walker Argendeli <email@hidden>)
 >Re: Core Data Suddenly Losing Changes (From: Walker Argendeli <email@hidden>)

  • Prev by Date: Re: Problem with 'launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:'???
  • Next by Date: Re: Core Data Suddenly Losing Changes
  • Previous by thread: Re: Core Data Suddenly Losing Changes
  • Next by thread: Re: Core Data Suddenly Losing Changes
  • Index(es):
    • Date
    • Thread