Creating BNRFeedStore

Right now, the request logic in Nerdfeed is in a controller. Open Nerdfeed.xcodeproj and locate ListViewController.m.

ListViewController.m is a big file already, and adding new features to this class will only get more difficult as it becomes larger. However, if you look at the code in this class, you can break it into two categories. First, there is the code that deals with populating views with model objects and handles user interaction. These are the data source and delegate methods for UITableView, the action methods, and the methods that control the flow of the application, like fetchEntries.

The other code in this file is request logic – preparing an NSURLConnection, receiving its response, and handling the parsing ...

Get iOS Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.