Graphics Programs Reference
In-Depth Information
The BNRConnection will hold on to all of the data that returns from the web service.
When that web service completes successfully, it must first parse that data into the xm-
lRootObject and then call the completionBlock ( Figure 28.9 ). Finally, it needs to
take itself out of the array of active connections so that it can be destroyed. Implement the
following method in BNRConnection.m .
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
// If there is a "root object"
if ([self xmlRootObject]) {
// Create a parser with the incoming data and let the root object parse
Search WWH ::




Custom Search