Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Buschmaster

macrumors 65816
Original poster
Feb 12, 2006
1,306
27
Minnesota
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

macrumors 6502a
Jan 4, 2002
981
0
Austin, TX
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

macrumors 65816
Original poster
Feb 12, 2006
1,306
27
Minnesota
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.