Chapter 8, Using the Table View, starts with a relatively simple plist. Although the book doesn't show the XML source of the plist, I believe the simple example is an array of "dict" objects.
But what about the more complex plist, page 213? First dimension is year, second dimension is movie titles. What would the XML source of this plist look like?
I'm guessing an outside array of "dict" objects, each object containing a single key/string pair for the year. Then inside each "dict" object is an "array" containing an inside array of "dict" objects, multiple in this case, all the movie titles.
Something like this:
Code:
<array>
<dict>
<key>year</key>
<string>2000</string>
<array>
<dict>
<key>title</key>
<string>Malcolm X</sting>
</dict>
<dict>
<key>title</key>
<string>The Pelican Brief</string>
</dict>
</array>
</dict>
<dict>
<key>year</key>
<string>2001</string>
etc.
Is this correct?