Building BNRFeedStore

The code that was removed from ListViewController must be replaced in BNRFeedStore. The BNRFeedStore must handle preparing the NSURLRequest, kicking off the NSURLConnection, handling the response from the server, and starting the parser. The ListViewController simply asks for these actions to be initiated and supplies a callback for when they are completed.

Initiating the connection

A store’s job is to take a really simple request from a controller, like fetch the RSS feed, and prepare a detailed request tailored for the external source it interacts with. In this case, the detailed request is the web service call to http://forums.bignerdranch.com. In BNRFeedStore.m, begin implementing fetchRSSFeedWithCompletion: by preparing ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.