<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Post to a Twitter Account from the iPhone</title>
	<atom:link href="http://MobileDeveloperTips.com/networking/post-to-a-twitter-account-from-the-iphone.html/feed" rel="self" type="application/rss+xml" />
	<link>http://MobileDeveloperTips.com/networking/post-to-a-twitter-account-from-the-iphone.html</link>
	<description>iOS and Objective-C Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Tue, 22 May 2012 11:53:47 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Juan</title>
		<link>http://MobileDeveloperTips.com/networking/post-to-a-twitter-account-from-the-iphone.html#comment-15327</link>
		<dc:creator>Juan</dc:creator>
		<pubDate>Sun, 16 May 2010 09:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4522#comment-15327</guid>
		<description>Hi all!

To find out if users provided incorrect credentials you can do this:

NSURLResponse* response;
NSError* error;
NSData* result = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&amp;response error:&amp;error];

NSSting *resultString = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
NSLog(@&quot;%@&quot;,resultString);

[resultString release];

&quot;resultString&quot; is the response to the request. all you have to do now is to parse it.</description>
		<content:encoded><![CDATA[<p>Hi all!</p>
<p>To find out if users provided incorrect credentials you can do this:</p>
<p>NSURLResponse* response;<br />
NSError* error;<br />
NSData* result = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&amp;response error:&amp;error];</p>
<p>NSSting *resultString = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];<br />
NSLog(@&#8221;%@&#8221;,resultString);</p>
<p>[resultString release];</p>
<p>&#8220;resultString&#8221; is the response to the request. all you have to do now is to parse it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://MobileDeveloperTips.com/networking/post-to-a-twitter-account-from-the-iphone.html#comment-7446</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 02 Dec 2009 11:40:58 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4522#comment-7446</guid>
		<description>Hello John,

Thanks for the code example. Very useful.
Can you explain how one can find out if the user provided incorrect credentials? At the moment the code logs &quot;Posted successfully to Twitter&quot; even if the password is incorrect.

Many thanks,
Joe</description>
		<content:encoded><![CDATA[<p>Hello John,</p>
<p>Thanks for the code example. Very useful.<br />
Can you explain how one can find out if the user provided incorrect credentials? At the moment the code logs &#8220;Posted successfully to Twitter&#8221; even if the password is incorrect.</p>
<p>Many thanks,<br />
Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://MobileDeveloperTips.com/networking/post-to-a-twitter-account-from-the-iphone.html#comment-6853</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Thu, 19 Nov 2009 07:26:19 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4522#comment-6853</guid>
		<description>You can also just do an asynchronous http request by replacing your call to sendSynchronousRequest with:

[NSURLConnection connectionWithRequest: request delegate: some_class]

Where some_class is an instance of a class that implements delegate functions (e.g. connectionDidFinishLoading:conection, connection:DidReceiveData, etc).  Any processing will be done in the current thread, but it likely pales in comparison to the latency of the http request.</description>
		<content:encoded><![CDATA[<p>You can also just do an asynchronous http request by replacing your call to sendSynchronousRequest with:</p>
<p>[NSURLConnection connectionWithRequest: request delegate: some_class]</p>
<p>Where some_class is an instance of a class that implements delegate functions (e.g. connectionDidFinishLoading:conection, connection:DidReceiveData, etc).  Any processing will be done in the current thread, but it likely pales in comparison to the latency of the http request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://MobileDeveloperTips.com/networking/post-to-a-twitter-account-from-the-iphone.html#comment-6722</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Mon, 16 Nov 2009 13:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4522#comment-6722</guid>
		<description>Thanks for pointing that out Fabian, I&#039;ve added code inside the method postToTwitter to allocate/free an autorelease pool.</description>
		<content:encoded><![CDATA[<p>Thanks for pointing that out Fabian, I&#8217;ve added code inside the method postToTwitter to allocate/free an autorelease pool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabian</title>
		<link>http://MobileDeveloperTips.com/networking/post-to-a-twitter-account-from-the-iphone.html#comment-6708</link>
		<dc:creator>Fabian</dc:creator>
		<pubDate>Mon, 16 Nov 2009 05:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4522#comment-6708</guid>
		<description>When using +detachNewThreadSelector: you have to set up a NSAutoreleasePool in that method. Otherwise you&#039;ll be leaking memory!</description>
		<content:encoded><![CDATA[<p>When using +detachNewThreadSelector: you have to set up a NSAutoreleasePool in that method. Otherwise you&#8217;ll be leaking memory!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

