Cover by Joe Conway, Aaron Hillegass

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required