<?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: Building an iPhone App to Parse the Twitter API with NSXMLParser</title>
	<atom:link href="https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Wed, 29 Apr 2026 13:07:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>By: rick</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20781</link>
		<dc:creator><![CDATA[rick]]></dc:creator>
		<pubDate>Thu, 01 Mar 2012 07:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20781</guid>
		<description><![CDATA[It is empty: 2012-03-01 08:11:28.637 college[375:b903] (
)

Now I&#039;m just intrigued to get this working this way haha

p.s. your edit button doesn&#039;t seem to load properly, so I can&#039;t edit it.]]></description>
		<content:encoded><![CDATA[<p>It is empty: 2012-03-01 08:11:28.637 college[375:b903] (<br />
)</p>
<p>Now I&#8217;m just intrigued to get this working this way haha</p>
<p>p.s. your edit button doesn&#8217;t seem to load properly, so I can&#8217;t edit it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rick</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20780</link>
		<dc:creator><![CDATA[rick]]></dc:creator>
		<pubDate>Thu, 01 Mar 2012 07:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20780</guid>
		<description><![CDATA[It is empty:
2012-03-01 08:11:28.637 xxxxxx[375:b903] ()]]></description>
		<content:encoded><![CDATA[<p>It is empty:<br />
2012-03-01 08:11:28.637 xxxxxx[375:b903] ()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20778</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Thu, 01 Mar 2012 00:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20778</guid>
		<description><![CDATA[I would assume so. I can&#039;t say I&#039;m terribly familiar with atom, but looking at the response from the Twitter API, it should work. (Unless I&#039;m missing something.)

Is there any other console output? Does that &lt;code&gt;NSLog(@&quot;%@&quot;, statuses);&lt;/code&gt; in &lt;code&gt;parserDidEndDocument&lt;/code&gt; show anything?

Of course, you could always try using the JSON format instead. It&#039;s quite a nice format to work with. There&#039;s a good Twitter tutorial over at &lt;a href=&quot;http://mobile.tutsplus.com/tutorials/iphone/iphone-json-twitter-api/&quot; rel=&quot;nofollow&quot;&gt;Mobile Tuts&lt;/a&gt; that uses JSON. :)]]></description>
		<content:encoded><![CDATA[<p>I would assume so. I can&#8217;t say I&#8217;m terribly familiar with atom, but looking at the response from the Twitter API, it should work. (Unless I&#8217;m missing something.)</p>
<p>Is there any other console output? Does that <code>NSLog(@"%@", statuses);</code> in <code>parserDidEndDocument</code> show anything?</p>
<p>Of course, you could always try using the JSON format instead. It&#8217;s quite a nice format to work with. There&#8217;s a good Twitter tutorial over at <a href="http://mobile.tutsplus.com/tutorials/iphone/iphone-json-twitter-api/" rel="nofollow">Mobile Tuts</a> that uses JSON. <img src="https://www.webmaster-source.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rick</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20777</link>
		<dc:creator><![CDATA[rick]]></dc:creator>
		<pubDate>Wed, 29 Feb 2012 21:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20777</guid>
		<description><![CDATA[Hey Matt,

Trying to get it to work with scouring for hashtags:
http://search.twitter.com/search.atom?q=%23apple for example.

I didn&#039;t change a lot except this:
in ParseXMLForUser I changed
    //Build the Twitter API URL by combining the user with the rest of the URL
    NSString *urlString = [NSString stringWithFormat:@&quot;http://search.twitter.com/search.atom?q=%23apple&quot;];

in - (void)parser: ....
I set the last line (empty the dictionary if we&#039;re parsing a new status element) to:
    if ([elementName isEqualToString:@&quot;entry&quot;]) {
        [currentElementData removeAllObjects];

I changes this function:
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName {
    
    //If we&#039;ve hit the  tag, store the data in the statuses array
    if ([elementName isEqualToString:@&quot;entry&quot;]) {
        [statuses addObject:[currentElementData copy]];
    }
    
    //Trim any extra spaces and newline characters from around currentElementString
    NSString *string = [currentElementString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
    
    //Store the status data in the currentElementData dictionary
    if ([currentElement isEqualToString:@&quot;published&quot;]) {
        [currentElementData setObject:string forKey:@&quot;published&quot;];
    } else if ([currentElement isEqualToString:@&quot;title&quot;]) {
        [currentElementData setObject:string forKey:@&quot;title&quot;];
    } else if ([currentElement isEqualToString:@&quot;name&quot;]) {
        [currentElementData setObject:string forKey:@&quot;name&quot;];
    } else if ([currentElement isEqualToString:@&quot;id&quot;]) {
        [currentElementData setObject:string forKey:@&quot;id&quot;];
    }    
}

and changed updateview to get the title:
- (void)updateView {
    
    //Select the latest tweet
    NSDictionary *latestTweet = [statuses objectAtIndex:0];
    
    //Set the tweet label
    [tweetLabel setText:[latestTweet objectForKey:@&quot;title&quot;]];


The problem is that I get a sigabrt error at the objectAtIndex:0.
So statuses doesn&#039;t get filled. Which seems unlogical as the atom should be parsed without a problem as well with your method (I thought). Any idea&#039;s?]]></description>
		<content:encoded><![CDATA[<p>Hey Matt,</p>
<p>Trying to get it to work with scouring for hashtags:<br />
<a href="http://search.twitter.com/search.atom?q=%23apple" rel="nofollow">http://search.twitter.com/search.atom?q=%23apple</a> for example.</p>
<p>I didn&#8217;t change a lot except this:<br />
in ParseXMLForUser I changed<br />
    //Build the Twitter API URL by combining the user with the rest of the URL<br />
    NSString *urlString = [NSString stringWithFormat:@&#8221;http://search.twitter.com/search.atom?q=%23apple&#8221;];</p>
<p>in &#8211; (void)parser: &#8230;.<br />
I set the last line (empty the dictionary if we&#8217;re parsing a new status element) to:<br />
    if ([elementName isEqualToString:@&#8221;entry&#8221;]) {<br />
        [currentElementData removeAllObjects];</p>
<p>I changes this function:<br />
&#8211; (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName {</p>
<p>    //If we&#8217;ve hit the  tag, store the data in the statuses array<br />
    if ([elementName isEqualToString:@&#8221;entry&#8221;]) {<br />
        [statuses addObject:[currentElementData copy]];<br />
    }</p>
<p>    //Trim any extra spaces and newline characters from around currentElementString<br />
    NSString *string = [currentElementString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];</p>
<p>    //Store the status data in the currentElementData dictionary<br />
    if ([currentElement isEqualToString:@&#8221;published&#8221;]) {<br />
        [currentElementData setObject:string forKey:@&#8221;published&#8221;];<br />
    } else if ([currentElement isEqualToString:@&#8221;title&#8221;]) {<br />
        [currentElementData setObject:string forKey:@&#8221;title&#8221;];<br />
    } else if ([currentElement isEqualToString:@&#8221;name&#8221;]) {<br />
        [currentElementData setObject:string forKey:@&#8221;name&#8221;];<br />
    } else if ([currentElement isEqualToString:@&#8221;id&#8221;]) {<br />
        [currentElementData setObject:string forKey:@&#8221;id&#8221;];<br />
    }<br />
}</p>
<p>and changed updateview to get the title:<br />
&#8211; (void)updateView {</p>
<p>    //Select the latest tweet<br />
    NSDictionary *latestTweet = [statuses objectAtIndex:0];</p>
<p>    //Set the tweet label<br />
    [tweetLabel setText:[latestTweet objectForKey:@&#8221;title&#8221;]];</p>
<p>The problem is that I get a sigabrt error at the objectAtIndex:0.<br />
So statuses doesn&#8217;t get filled. Which seems unlogical as the atom should be parsed without a problem as well with your method (I thought). Any idea&#8217;s?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20550</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Wed, 21 Dec 2011 03:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20550</guid>
		<description><![CDATA[If you&#039;ve already figured out the basic idea, and are debugging, you could always ask the amazing people at &lt;a href=&quot;http://stackoverflow.com/&quot; rel=&quot;nofollow&quot;&gt;Stack Overflow&lt;/a&gt;. Just include some of the code, and any errors it might be throwing. Someone usually responds quickly, and a lot of people who know more about embedded programming than me hang out there.]]></description>
		<content:encoded><![CDATA[<p>If you&#8217;ve already figured out the basic idea, and are debugging, you could always ask the amazing people at <a href="http://stackoverflow.com/" rel="nofollow">Stack Overflow</a>. Just include some of the code, and any errors it might be throwing. Someone usually responds quickly, and a lot of people who know more about embedded programming than me hang out there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vigneswara Baarathi</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20543</link>
		<dc:creator><![CDATA[Vigneswara Baarathi]]></dc:creator>
		<pubDate>Mon, 19 Dec 2011 08:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20543</guid>
		<description><![CDATA[Hi,

Awesome tutorial. Do u think u can guide how to do an auto refresh using NSTimer. I already got it to loop. Its updating the Log.. But not on screen.. Tried to debug my self. But failed

Can you help?]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Awesome tutorial. Do u think u can guide how to do an auto refresh using NSTimer. I already got it to loop. Its updating the Log.. But not on screen.. Tried to debug my self. But failed</p>
<p>Can you help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20423</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Tue, 06 Dec 2011 01:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20423</guid>
		<description><![CDATA[Okay. I noticed that the sidebar calls the error an &quot;Automatic Reference Counting Issue.&quot; I wrote this tutorial (but didn&#039;t publish it) before Apple introduced ARC, and I haven&#039;t really brushed up on the subject yet.

From what I&#039;ve read, if your project has ARC on, you not only don&#039;t need release statements, but you &lt;em&gt;cannot have them&lt;/em&gt;. Try commenting out any [something release] lines in the project with a &lt;code&gt;//&lt;/code&gt;, as well as the whole &lt;code&gt;dealloc&lt;/code&gt; method. e.g. &lt;code&gt;/* - (void)dealloc { ... } */&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Okay. I noticed that the sidebar calls the error an &#8220;Automatic Reference Counting Issue.&#8221; I wrote this tutorial (but didn&#8217;t publish it) before Apple introduced ARC, and I haven&#8217;t really brushed up on the subject yet.</p>
<p>From what I&#8217;ve read, if your project has ARC on, you not only don&#8217;t need release statements, but you <em>cannot have them</em>. Try commenting out any [something release] lines in the project with a <code>//</code>, as well as the whole <code>dealloc</code> method. e.g. <code>/* - (void)dealloc { ... } */</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt duhe</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20422</link>
		<dc:creator><![CDATA[matt duhe]]></dc:creator>
		<pubDate>Mon, 05 Dec 2011 14:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20422</guid>
		<description><![CDATA[http://imagebin.org/187087

That is my screenshot of one of the errors.]]></description>
		<content:encoded><![CDATA[<p><a href="http://imagebin.org/187087" rel="nofollow">http://imagebin.org/187087</a></p>
<p>That is my screenshot of one of the errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt duhe</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20421</link>
		<dc:creator><![CDATA[matt duhe]]></dc:creator>
		<pubDate>Mon, 05 Dec 2011 14:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20421</guid>
		<description><![CDATA[Thanks for responding.

They are both errors, and I will check for typos and such, but I literally copy/pasted the code from above. I will look however. 

Thanks]]></description>
		<content:encoded><![CDATA[<p>Thanks for responding.</p>
<p>They are both errors, and I will check for typos and such, but I literally copy/pasted the code from above. I will look however. </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comment-20399</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Wed, 30 Nov 2011 23:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362#comment-20399</guid>
		<description><![CDATA[I don&#039;t know if a screenshot would help much, as there are numerous places something could be wrong. (It&#039;s difficult enough for me to debug my own projects when it&#039;s right in front of me!) You could post one (or copy/paste to a pastebin site) if you want to give it a shot, though.

Are the messages errors or warnings? (Red vs Yellow.) The compiler will sometimes throw a warning along those lines when the method being called is defined lower down in the code, but it should still compile and run correctly. If they&#039;re errors, then you probably have some sort of error with the definitions. Maybe a typo or a missing brace somewhere.]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if a screenshot would help much, as there are numerous places something could be wrong. (It&#8217;s difficult enough for me to debug my own projects when it&#8217;s right in front of me!) You could post one (or copy/paste to a pastebin site) if you want to give it a shot, though.</p>
<p>Are the messages errors or warnings? (Red vs Yellow.) The compiler will sometimes throw a warning along those lines when the method being called is defined lower down in the code, but it should still compile and run correctly. If they&#8217;re errors, then you probably have some sort of error with the definitions. Maybe a typo or a missing brace somewhere.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-04-29 14:29:39 by W3 Total Cache
-->