views:

109

answers:

3

Hi,

I want to release an update for my app.

I'm stuck on how to update the existing core data database which also stores data entered by the user. All i need to do is update a couple of records and preserve current user data. No changes are made to the model.

Thanks.

+3  A: 

Write a chunk of code that performs the update, and set a user preference value (NSUserDefaults) when you have done so. Include that code in your new version, checking the preference value first.

Paul Lynch
Or store the note in the metadata of the persistent store so that it can survive a wipe of the user preferences.
Marcus S. Zarra
Most likely case for a wipe of prefs will also wipe the apps documents folder (app reinstall).
Paul Lynch
A: 

that is great question and exactly the same one i asked yesterday!! if you find a solution (or if i do) can you post it here or contact me? Thank you! i will do the same if i find a solution!

treasure
A: 

did you find your answer?

can someone answer this?

treasure