#import <RSSFeed.h>
Public Member Functions | |
| (id) | - initWithURL: |
| (NSString *) | - description |
| (enum RSSFeedStatus) | - status |
| (RSSArticle *) | - articleAtIndex: |
| (unsigned int) | - count |
| (NSEnumerator *) | - articleEnumerator |
| (void) | - removeArticle: |
| (NSString *) | - feedName |
| (NSURL *) | - feedURL |
| (void) | - setAutoClear: |
| (BOOL) | - autoClear |
| (void) | - clearArticles |
| (void) | - setArticleClass: |
| (Class) | - articleClass |
| (NSDate *) | - lastRetrieval |
This is the generic way to read feeds:
NSURL* url = [NSURL URLWithString:@"http://www.example.com/feed.xml"]; RSSFeed* feed = [RSSFeed initWithURL: url]; enum RSSFeedError err = [feed fetch]; [feed setAutoClear: NO];
int i;
for (i=0; i<[feed count]; i++)
{
RSSArticle* myArticle = [feed articleAtIndex: i];
// [...] more code here
}
NSURL
|
|
Lets you access the individual articles in the feed. Often used in conjunction with the count method. Also take a look at the example in the description of this class. (RSSFeed)
|
|
|
Returns the class of the article objects. This will be a subtype of RSSArticle.
|
|
|
|
|
|
|
|
|
Clears the list of articles. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Designated initializer.
|
|
|
Returns the date of last retrieval of this feed. If the feed hasn't been retrieved yet, this method returns nil.
|
|
|
Deletes an article from the feed.
|
|
|
Sets the class of the article objects. This needs to be a subtype of RSSArticle.
|
|
|
Lets you decide if the feed should be cleared before new articles are downloaded.
|
|
|
Accessor for the status of the feed. This can be used by a multithreaded GUI to indicate if a feed is currently fetching...
|
1.4.4