<?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: Easy To Create Buttons with Cocos2D</title>
	<atom:link href="http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/</link>
	<description>Programming projects and sample code</description>
	<lastBuildDate>Sat, 24 Jul 2010 10:37:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Eric</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2614</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Thu, 13 May 2010 11:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2614</guid>
		<description>Both of these errors are very common and basic errors that you will experience while working with Objective C. You can find plenty of information about the error in the first few google results for it.

Based on the fact that you just copied the code and tried to run it...you are probably missing button.png and button_p.png.</description>
		<content:encoded><![CDATA[<p>Both of these errors are very common and basic errors that you will experience while working with Objective C. You can find plenty of information about the error in the first few google results for it.</p>
<p>Based on the fact that you just copied the code and tried to run it&#8230;you are probably missing button.png and button_p.png.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2613</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 13 May 2010 10:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2613</guid>
		<description>I have solved that issue but i now get the &quot;SIGABRT&quot; error.

Any ideas???</description>
		<content:encoded><![CDATA[<p>I have solved that issue but i now get the &#8220;SIGABRT&#8221; error.</p>
<p>Any ideas???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2612</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 13 May 2010 10:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2612</guid>
		<description>Hi,

I have implemented your code with no errors or warnings when i build it. However, when I run it on my phone i get the following error

&quot;EXEC_BAD_ACCESS&quot; which is apparently a memory error - trying to access something that does not exist.

Any ideas how I can fix it?

Thanks,
Ben</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have implemented your code with no errors or warnings when i build it. However, when I run it on my phone i get the following error</p>
<p>&#8220;EXEC_BAD_ACCESS&#8221; which is apparently a memory error &#8211; trying to access something that does not exist.</p>
<p>Any ideas how I can fix it?</p>
<p>Thanks,<br />
Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manu</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2511</link>
		<dc:creator>Manu</dc:creator>
		<pubDate>Tue, 23 Mar 2010 22:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2511</guid>
		<description>I&#039;m using it with a newer version of cocos2d and had to change all the class names prepending the &#039;CC&#039;. for example:

Sprite -&gt; CCSprite
etc.

Thanks!
Manuel</description>
		<content:encoded><![CDATA[<p>I&#8217;m using it with a newer version of cocos2d and had to change all the class names prepending the &#8216;CC&#8217;. for example:</p>
<p>Sprite -&gt; CCSprite<br />
etc.</p>
<p>Thanks!<br />
Manuel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2502</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 01 Mar 2010 23:02:55 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2502</guid>
		<description>I&#039;m sure there is a better, clever way to do this, but in my code I just make a different private method for each button.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sure there is a better, clever way to do this, but in my code I just make a different private method for each button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stu</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2501</link>
		<dc:creator>Stu</dc:creator>
		<pubDate>Mon, 01 Mar 2010 23:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2501</guid>
		<description>John, Thanks for the button class. I do have a question however. If you have say 4 or 5 buttons and use the same selector method, how would I determine which button was pressed?</description>
		<content:encoded><![CDATA[<p>John, Thanks for the button class. I do have a question however. If you have say 4 or 5 buttons and use the same selector method, how would I determine which button was pressed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hilanderjeff</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2433</link>
		<dc:creator>hilanderjeff</dc:creator>
		<pubDate>Sun, 24 Jan 2010 05:45:42 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2433</guid>
		<description>Hi,

It is working. I changed [self addChild:image z:1] to [self addChild:image z:0]. The z value was set to 0.

Good Job!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>It is working. I changed [self addChild:image z:1] to [self addChild:image z:0]. The z value was set to 0.</p>
<p>Good Job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2310</link>
		<dc:creator>Cory</dc:creator>
		<pubDate>Mon, 11 Jan 2010 00:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2310</guid>
		<description>I created a quick addition so that I can have a button that toggles between two images. In my case this is a play/pause button.

http://gist.github.com/273888

(note: uses cocos2d 0.9 namespace, so CCMenuItem instead of MenuItem, you&#039;ll have to change it back if you&#039;re using 0.8 or earlier)</description>
		<content:encoded><![CDATA[<p>I created a quick addition so that I can have a button that toggles between two images. In my case this is a play/pause button.</p>
<p><a href="http://gist.github.com/273888" rel="nofollow">http://gist.github.com/273888</a></p>
<p>(note: uses cocos2d 0.9 namespace, so CCMenuItem instead of MenuItem, you&#8217;ll have to change it back if you&#8217;re using 0.8 or earlier)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2309</link>
		<dc:creator>Cory</dc:creator>
		<pubDate>Sun, 10 Jan 2010 23:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2309</guid>
		<description>John,
Thanks so much for the class. Something like this should really be included in cocos2d already. It only took a moment to make it compatible with cocos2d 0.9 (hint: add CC before all the class names).

All the best,
Cory</description>
		<content:encoded><![CDATA[<p>John,<br />
Thanks so much for the class. Something like this should really be included in cocos2d already. It only took a moment to make it compatible with cocos2d 0.9 (hint: add CC before all the class names).</p>
<p>All the best,<br />
Cory</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://johnehartzog.com/2009/10/easy-to-create-buttons-with-cocos2d/comment-page-1/#comment-2109</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Fri, 13 Nov 2009 01:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=396#comment-2109</guid>
		<description>OmgZ ur code doesn&#039;t woooork!  Show me how now! I demand an answer!!!

Ok, all joking aside, you do need to import the cocos headers for this to work, so if you&#039;re having troubles compiling, try adding this to the top of button.h:

#import &quot;cocos2d.h&quot;


Cheers for some nifty code!</description>
		<content:encoded><![CDATA[<p>OmgZ ur code doesn&#8217;t woooork!  Show me how now! I demand an answer!!!</p>
<p>Ok, all joking aside, you do need to import the cocos headers for this to work, so if you&#8217;re having troubles compiling, try adding this to the top of button.h:</p>
<p>#import &#8220;cocos2d.h&#8221;</p>
<p>Cheers for some nifty code!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
