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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access