O'Reilly logo

iOS Programming: The Big Nerd Ranch Guide by Joe Conway, Aaron Hillegass

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required