Re: Core Data Suddenly Losing Changes
Re: Core Data Suddenly Losing Changes
- Subject: Re: Core Data Suddenly Losing Changes
- From: Walker Argendeli <email@hidden>
- Date: Mon, 27 Apr 2009 16:50:05 -0400
All I've done is bind controls in IB to values in Core Data. (I'm not
very experienced with it yet)
Core-Data-Wise, I have a data model and an AppDelegate file where I
specified addPersistenStoreWithType: etc.
The persistent store is now empty when I look at it, although I know
it's had data in it in the past.
Sorry I wasn't able to completely answer your question.
Thanks,
- Walker Argendeli
On Apr 27, 2009, at 4:36 PM, Adam Swift wrote:
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