Differences in file system between iPhone and iPod touch?

Discussion in 'iOS Programming' started by johnnyjibbs, May 28, 2009.

  1. johnnyjibbs macrumors 68030

    johnnyjibbs

    Joined:
    Sep 18, 2003
    Location:
    London, UK
    #1
    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
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    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.
     
  3. appbetatester macrumors newbie

    Joined:
    Apr 12, 2009
  4. johnnyjibbs thread starter macrumors 68030

    johnnyjibbs

    Joined:
    Sep 18, 2003
    Location:
    London, UK
    #4
    I'll send you one later today. I left my code list at home.. Thanks.
     
  5. johnnyjibbs thread starter macrumors 68030

    johnnyjibbs

    Joined:
    Sep 18, 2003
    Location:
    London, UK
    #5
    Hi, you don't allow emails or private messages so there's no way for me to non-publicly give you the code. Please could you PM me and I'll reply with the code.
     
  6. xsmasher macrumors regular

    xsmasher

    Joined:
    Jul 18, 2008
    #6
    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!
     

Share This Page