<?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: Hot Cocoa 8: Twitter App II</title>
	<atom:link href="http://hotcocoa.lastedit.com/www/2008/12/hot-cocoa-8-twitter-app-ii/feed/" rel="self" type="application/rss+xml" />
	<link>http://hotcocoa.lastedit.com/www/2008/12/hot-cocoa-8-twitter-app-ii/</link>
	<description>(Mis)adventures into the world of OS X programming.</description>
	<lastBuildDate>Sun, 15 Aug 2010 17:51:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ivan Karpan</title>
		<link>http://hotcocoa.lastedit.com/www/2008/12/hot-cocoa-8-twitter-app-ii/comment-page-1/#comment-56</link>
		<dc:creator>Ivan Karpan</dc:creator>
		<pubDate>Tue, 03 Feb 2009 12:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://hotcocoa.lastedit.com/www/?p=106#comment-56</guid>
		<description>Hey Kevin!

Thanks a lot for you podcast, it does a great job.

I want to add one thing to this episode.

When I tried to log into Twitter using my credentials I failed. Digging around the problem resulted in a fact that username and password when authenticating in the Twitter API should both be URL encoded. My login in Twitter is my email so I had problems with @ symbol.

Here&#039;s what can be done here: before urlString declaration in getFriendsTimelineForUsername method we can do the following:
NSString *escapedUsername = (NSString *) CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)username, NULL, (CFStringRef)@&quot;;/?:@&amp;=+$,&quot;, kCFStringEncodingUTF8);
NSString *escapedPassword = (NSString *) CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)password, NULL, (CFStringRef)@&quot;;/?:@&amp;=+$,&quot;, kCFStringEncodingUTF8);

And use these variables instead of the ones we receive in the method. This looks ugly, but nasically the only way - here&#039;s an explanation: http://www.tikirobot.net/wp/2007/01/27/url-encode-in-cocoa/</description>
		<content:encoded><![CDATA[<p>Hey Kevin!</p>
<p>Thanks a lot for you podcast, it does a great job.</p>
<p>I want to add one thing to this episode.</p>
<p>When I tried to log into Twitter using my credentials I failed. Digging around the problem resulted in a fact that username and password when authenticating in the Twitter API should both be URL encoded. My login in Twitter is my email so I had problems with @ symbol.</p>
<p>Here&#8217;s what can be done here: before urlString declaration in getFriendsTimelineForUsername method we can do the following:<br />
NSString *escapedUsername = (NSString *) CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)username, NULL, (CFStringRef)@&#8221;;/?:@&amp;=+$,&#8221;, kCFStringEncodingUTF8);<br />
NSString *escapedPassword = (NSString *) CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)password, NULL, (CFStringRef)@&#8221;;/?:@&amp;=+$,&#8221;, kCFStringEncodingUTF8);</p>
<p>And use these variables instead of the ones we receive in the method. This looks ugly, but nasically the only way &#8211; here&#8217;s an explanation: <a href="http://www.tikirobot.net/wp/2007/01/27/url-encode-in-cocoa/" rel="nofollow">http://www.tikirobot.net/wp/2007/01/27/url-encode-in-cocoa/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mack1412</title>
		<link>http://hotcocoa.lastedit.com/www/2008/12/hot-cocoa-8-twitter-app-ii/comment-page-1/#comment-43</link>
		<dc:creator>mack1412</dc:creator>
		<pubDate>Mon, 15 Dec 2008 21:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://hotcocoa.lastedit.com/www/?p=106#comment-43</guid>
		<description>I am enjoying this Kevin. Keep up the good work!</description>
		<content:encoded><![CDATA[<p>I am enjoying this Kevin. Keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paris</title>
		<link>http://hotcocoa.lastedit.com/www/2008/12/hot-cocoa-8-twitter-app-ii/comment-page-1/#comment-41</link>
		<dc:creator>Paris</dc:creator>
		<pubDate>Sun, 14 Dec 2008 12:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://hotcocoa.lastedit.com/www/?p=106#comment-41</guid>
		<description>Bravo on your effort! Great stuff.</description>
		<content:encoded><![CDATA[<p>Bravo on your effort! Great stuff.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
