Graphics Programs Reference
In-Depth Information
}
Take a moment to scroll through
ListViewController.h
and
ListViewCon-
troller.m
. These files are now very sleek and easy to follow.
ListViewControl-
ler
has a primary focus now - presenting a table of
RSSItem
s. This is the purpose of
store objects: let the controller focus on its job rather than the details of request logic.
Another thing to mention - in the declaration of
fetchRSSFeedWithCompletion:
in
BNRFeedStore.h
, you supplied the names of the arguments for the block argument.
In
Chapter 27
,
we mentioned that this wasn't necessary because the names of the argu-
ments only matter in the block literal.
However, when you were typing
fetchRSSFeedWithCompletion:
in
ListViewController.m
, you probably noticed that
Xcode
auto-completed the block
literal for you and added in the names of the arguments for the block. This was pretty
handy. So when declaring a block variable as a property or as an argument to a method,
it's good idea to specify the names of the arguments in the block to take advantage of
auto-completion.
You can build the application to check for syntax errors, but running it won't do you much
good since
fetchRSSFeedWithCompletion:
hasn't been implemented. In the next
section, you will complete the store object and get
Nerdfeed
back up and running.