Graphics Programs Reference
In-Depth Information
<title>Big Nerd Ranch General Discussions :: Big Nerd Ranch!</title>
<link>http://forums.bignerdranch.com/viewtopic.php?f=4&t=532</link>
<author>no_email@example.com (bignerd)</author>
<category>Big Nerd Ranch General Discussions</category>
<comments>http://forums.bignerdranch.com/posting.php?mode=reply</comments>
<pubDate>Mon, 27 Dec 2010 11:27:01 GMT</pubDate>
</item>
...
</channel>
</rss>
(If you aren't seeing anything like this in your console, verify that you typed the URL cor-
rectly.)
Let's break down the XML the server returned. The top-level element in this document is
an rss element. It contains a channel element. That channel element has some
metadata that describes it (a title and a description). Then, there is a series of item ele-
ments. Each item has a title, link, author, etc. and represents a single post on the forum.
In a moment, you will create two new classes, RSSChannel and RSSItem , to represent
the channel and item elements. The ListViewController will have an instance
variable for the RSSChannel . The RSSChannel will hold an array of RSSItem s.
Each RSSItem will be displayed as a row in the table view. Both RSSChannel and
RSSItem will retain some of their metadata as instance variables, as shown in Fig-
ure 25.6 .
Figure 25.6 Model object graph
 
Search WWH ::




Custom Search