Objective-CでTwitterのPublic Timeline上のつぶやき(20件分)を表示する

とりあえず試してみたかっただけなので、エラー処理とか省いてます。

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
	NSURL* url;
	NSXMLDocument* document;
	NSArray* nodes;

	url = [NSURL URLWithString:@"http://twitter.com/statuses/public_timeline.rss"];
	document = [[NSXMLDocument alloc] initWithContentsOfURL:url options:0 error:NULL];
	nodes = [document nodesForXPath:@"/rss/channel/item/title" error:NULL];

	NSXMLNode* node;
	NSEnumerator* enumerator;
	enumerator = [nodes objectEnumerator];
	while (node = [enumerator nextObject]) {
		NSLog(@"%@", [node stringValue]);
	}

	[pool drain];
	return 0;
}