Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

johnnyjibbs

macrumors 68030
Original poster
Sep 18, 2003
2,964
122
London, UK
I have a user on an iPod touch 2nd gen who says that when using my app it is not remembering saved data between launches. My app automatically saves everything on exit. I only have an iPhone and have not run into any such problems on it, nor have I had any reports from other users having a similar problem.

The user says that resetting the app or the iPod makes no difference.

Does anyone know if and why there would be a difference between the iPhone and iPod touch (2nd gen) in this regard? To save the contents of a list of data, I'm saving the contents of an array using the writeToFile: method to save into the local documents folder and then reading again using the initWithContentsOfFile: method. I'm not using NSUserDefaults.

The only thing I could think of was that his disk was full but that appears not to be the case.

If anyone has come across similar problems then any help would be appreciated. (In fact, I hope I'm not breaking forum rules here but in connection with this post if anyone has a 2nd gen iPod touch on 2.2.1 and is happy to test it for me, PM me and I'll send you one of the spare promo codes I have).

Many thanks.
John
 
There should be no significant difference between the file systems on iPhone and iPod Touch. Of course the iPod has no camera and no phone. The iPod has a faster cpu.

Do you know that this user is on 2.2.1?

If you can't figure out the issue you should consider adding some debugging code to your app for the next update. Have it check carefully that each step of saving and restoring the data works as expected and display an alert if there's any problem. Users will report to you if they are seeing this alert.
 
Ask what the user's language settings are, too. I had a similar problem with data that wouldn't save because of a difference in date formats!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.