object persistance with plist file, "writeToFile" doubt

Discussion in 'iOS Programming' started by blakintosh, May 20, 2010.

  1. blakintosh macrumors member

    Joined:
    May 26, 2008
    #1
    Ok guys before I begin coding I want to make sure it's even possible to do it. Currently I have a NSMutableArray made up of various NSDictionarys that are made up of NSArrays (which are bidimensional so this in turn have NSArrays) that have two strings.

    The question is, can I use the writeToFile function with the NSMutableArray and get a plist file? I know this function doesn't work with custom objects but I want to know if it works with this conglomerate use of permitted objects :p

    thanks in advance, I hope you understand what I want
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Any combination of allowed objects will work. So what you posted will work. Why you didn't just try it and find out I don't know. It would have been quicker...
     
  3. blakintosh thread starter macrumors member

    Joined:
    May 26, 2008

Share This Page