How to represent app objects such as cloths?

Discussion in 'iPhone/iPad Programming' started by guydor, Dec 17, 2012.

  1. macrumors member

    Joined:
    Mar 10, 2009
    #1
    Hello,

    I would like to know what is the best way to represent objects such as cloths.
    Let's say in the app you can create your own character, assign mouth, eyes, nose, cloths etc.

    How can I represent this objects in storage?
    XML file with the required properties and when need, parse the XML file?

    Thanks!
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    In storage, within your app? If so, an XML file is probably a bit too cumbersome. You might want to look into using property-lists (which are, in essence, XML files too, but with a helpful API) or CoreData instead, and then probably backing that up with some model classes. I recommend you read the "Core App Objects" section of the iOS App Programming Guide as a start.
     
  3. thread starter macrumors member

    Joined:
    Mar 10, 2009
    #3
    Great Thanks!

    :)
     

Share This Page