-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
28 lines (22 loc) · 790 Bytes
/
README
File metadata and controls
28 lines (22 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RSSParser
A simple RSS parser implemented in Objective-C
Sample Usage:
- (IBAction)parseRSS:(id)sender {
RSSParser *parser = [[RSSParser alloc] init];
[parser setDelegate:self];
[parser downloadAndParseFeed:[NSURL URLWithString:@"http://www.macupdate.com/rss"]];
}
- (void)parserDidParseChannel:(NSDictionary *)channel {
NSLog(@"Received Channel: %@", [channel objectForKey:@"title"]);
}
- (void)parserDidParseItem:(NSDictionary *)feedItem {
NSLog(@"Received Story: %@", [feedItem objectForKey:@"title"]);
NSLog(@"With Body: %@", [feedItem objectForKey:@"description"]);
}
- (void)parserDidFinishParsing:(RSSParser *)parser {
[parser release];
}
- (void)parser:(RSSParser *)parser didEncounterError:(NSError *)error {
NSLog(@"Error Occurred: %@", error);
[parser release];
}