No more setParentParserDelegate?


#1

Hello,

I got confused by some part in the code.

Before we moved the data retrieval code to BNRFeedStore and BNRConnection,
in the ListViewController.m we had this code:

- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict { NSLog(@"%@ found a %@ element", self, elementName); if ([elementName isEqual:@"channel"]) { channel = [[RSSChannel alloc] init]; [channel setParentParserDelegate:self]; [parser setDelegate:channel];} }

But after we moved the data retrieval logic to BNRFeedStore and BNRContainer,
I can’t see anymore where [channel setParentParserDelegate:self]; is being
called? it is not called anymore actually. The only thing being done is this in the BNRConnection class:

        [parser setDelegate:[self xmlRootObject]];

But how does the channel object know
to whom to forward parsing when it is done now?? Any help appreciated, because
I could not understand this.