PDA

View Full Version : Property List Help




Buschmaster
May 27, 2008, 09:54 PM
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?



Sayer
May 28, 2008, 08:48 AM
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.

Buschmaster
May 28, 2008, 09:16 AM
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.
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.