Property List Help

Discussion in 'Mac Programming' started by Buschmaster, May 27, 2008.

  1. Buschmaster macrumors 65816

    Buschmaster

    Joined:
    Feb 12, 2006
    Location:
    Minnesota
    #1
    I'm using XCode 3.1 and working with property lists.

    It looks like this:

    Root - Array (of dictionary)
    2nd Level - Dictionary
    3rd Level - Number, Number, String, Array (of string)

    Now I'd like to have a 4th level inside the array that makes the array of strings an array of arrays. The only problem is, I can't rename the array that deep. Any ideas as to why?
     
  2. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #2
    The UI isn't clear, but if you look at the resulting XML you see that you do not name an array or a dictionary thus you can't change the name of it in the UI.

    You can add a key value to an item in an array, but the array is just an array. If you want more granular control you should rethink the design of your property list or use pure XML and define your own schema.
     
  3. Buschmaster thread starter macrumors 65816

    Buschmaster

    Joined:
    Feb 12, 2006
    Location:
    Minnesota
    #3
    Ah, so I can name items inside of a dictionary but not inside of an array!

    Looks like I need to re-think my use of each.
     

Share This Page