<?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: iPhone Game Programming &#8211; Tutorial 7 &#8211; Singleton Class</title>
	<atom:link href="http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/</link>
	<description>iPhone Game Development - Web Development</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:12:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Rob P</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-3/#comment-3473</link>
		<dc:creator>Rob P</dc:creator>
		<pubDate>Fri, 21 May 2010 04:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-3473</guid>
		<description>thanks mike, this got me on the right track to passing variables between XIBs! you rock</description>
		<content:encoded><![CDATA[<p>thanks mike, this got me on the right track to passing variables between XIBs! you rock</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Day 29 &#8211; Game Preview &#171; Creating Iphone Game with Cocos2d</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-3/#comment-2995</link>
		<dc:creator>Day 29 &#8211; Game Preview &#171; Creating Iphone Game with Cocos2d</dc:creator>
		<pubDate>Tue, 30 Mar 2010 00:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-2995</guid>
		<description>[...] I learned how to create the Singleton Class mentioned in video from 71squared tutorial 7. [...]</description>
		<content:encoded><![CDATA[<p>[...] I learned how to create the Singleton Class mentioned in video from 71squared tutorial 7. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-3/#comment-2183</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 23 Nov 2009 12:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-2183</guid>
		<description>Hi Kristian

I basically just create the dealloc in the singleton the same was as I would in any other class.  Because my singletons should exist as long as the game is running I don&#039;t explicitly call it, as I never want to remove the singleton.

When the game is done then everything just gets removed along with anything else that was still being used.

Hope that makes sense.

Mike</description>
		<content:encoded><![CDATA[<p>Hi Kristian</p>
<p>I basically just create the dealloc in the singleton the same was as I would in any other class.  Because my singletons should exist as long as the game is running I don&#8217;t explicitly call it, as I never want to remove the singleton.</p>
<p>When the game is done then everything just gets removed along with anything else that was still being used.</p>
<p>Hope that makes sense.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-3/#comment-2178</link>
		<dc:creator>Kristian</dc:creator>
		<pubDate>Sun, 22 Nov 2009 23:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-2178</guid>
		<description>I&#039;ve been using singleton&#039;s quite happily since this tutorial, into I ran into a slight concern today.  

The dealloc is never explicitly called, so my assumption was it happens by itself when its no longer in use, or maybe when the program shuts down.  I was checking some cleanup code in the dealloc, and I realized that the debugger never seems to get there and the code never seems to run.

Should I be explicitly calling this at some point?
thanks!
-Kristian</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using singleton&#8217;s quite happily since this tutorial, into I ran into a slight concern today.  </p>
<p>The dealloc is never explicitly called, so my assumption was it happens by itself when its no longer in use, or maybe when the program shuts down.  I was checking some cleanup code in the dealloc, and I realized that the debugger never seems to get there and the code never seems to run.</p>
<p>Should I be explicitly calling this at some point?<br />
thanks!<br />
-Kristian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Incredible iPhone Game Programming Tutorials With Video &#124; iPhone Development Tutorials and Tips</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-3/#comment-1338</link>
		<dc:creator>Incredible iPhone Game Programming Tutorials With Video &#124; iPhone Development Tutorials and Tips</dc:creator>
		<pubDate>Fri, 31 Jul 2009 20:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-1338</guid>
		<description>[...] 5 &#8211; Animation Class iPhone Game Programming &#8211; Tutorial 6 &#8211; Tiled Map Class iPhone Game Programming &#8211; Tutorial 7 &#8211; Singleton Class iPhone Game Programming &#8211; Tutorial 8 &#8211; Particle Emitter iPhone Game Programming &#8211; [...]</description>
		<content:encoded><![CDATA[<p>[...] 5 &ndash; Animation Class iPhone Game Programming &ndash; Tutorial 6 &ndash; Tiled Map Class iPhone Game Programming &ndash; Tutorial 7 &ndash; Singleton Class iPhone Game Programming &ndash; Tutorial 8 &ndash; Particle Emitter iPhone Game Programming &ndash; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iphone Architect</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-3/#comment-959</link>
		<dc:creator>Iphone Architect</dc:creator>
		<pubDate>Wed, 17 Jun 2009 11:45:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-959</guid>
		<description>thanks for this great tutorial, it would be nice to have a tutorial about mvc implementation for iphone apps</description>
		<content:encoded><![CDATA[<p>thanks for this great tutorial, it would be nice to have a tutorial about mvc implementation for iphone apps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MFerron</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-3/#comment-944</link>
		<dc:creator>MFerron</dc:creator>
		<pubDate>Mon, 15 Jun 2009 19:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-944</guid>
		<description>Hey Mike,

Thanks again for these tutorials.  You&#039;re doing me and everyone else a great service.

I&#039;ve been following your tutorials and just now noticed you have a CGRect &quot;screenBounds&quot; in the EAGLView.h.  

When was this implemented?  How is this used?  I&#039;m not quite sure how I missed this.

Thanks for the help Mike.</description>
		<content:encoded><![CDATA[<p>Hey Mike,</p>
<p>Thanks again for these tutorials.  You&#8217;re doing me and everyone else a great service.</p>
<p>I&#8217;ve been following your tutorials and just now noticed you have a CGRect &#8220;screenBounds&#8221; in the EAGLView.h.  </p>
<p>When was this implemented?  How is this used?  I&#8217;m not quite sure how I missed this.</p>
<p>Thanks for the help Mike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RoberRM</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-3/#comment-786</link>
		<dc:creator>RoberRM</dc:creator>
		<pubDate>Thu, 28 May 2009 16:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-786</guid>
		<description>Hi Mike!

First of all, thanks for another excellent tutorial. ;) 

And now a quick question: why is it that you do not deallocate the sharedGameStateInstance variable?

Maybe because there can only be one instance of this variable and, therefore, when you do [super dealloc] you are deallocating everything inside this class, sharedGameStateInstance included? But I&#039;ve read everywhere that every time you allocate something you should deallocate it too...

In any case, if you did not intend to include this variable in the deallocation method, why rewrite it?

Thank you in advance for your answer. :) 

Rober</description>
		<content:encoded><![CDATA[<p>Hi Mike!</p>
<p>First of all, thanks for another excellent tutorial. ;) </p>
<p>And now a quick question: why is it that you do not deallocate the sharedGameStateInstance variable?</p>
<p>Maybe because there can only be one instance of this variable and, therefore, when you do [super dealloc] you are deallocating everything inside this class, sharedGameStateInstance included? But I&#8217;ve read everywhere that every time you allocate something you should deallocate it too&#8230;</p>
<p>In any case, if you did not intend to include this variable in the deallocation method, why rewrite it?</p>
<p>Thank you in advance for your answer. :) </p>
<p>Rober</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-2/#comment-722</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sun, 24 May 2009 09:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-722</guid>
		<description>Thanks brad.  Sounds like you have been given a steep learning curve.  I hope the tutorials help reduce that slop as much as possible and post any questions you may have :o)

Mike</description>
		<content:encoded><![CDATA[<p>Thanks brad.  Sounds like you have been given a steep learning curve.  I hope the tutorials help reduce that slop as much as possible and post any questions you may have :o)</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brad</title>
		<link>http://www.71squared.com/2009/05/iphone-game-programming-tutorial-7-singleton-class/comment-page-2/#comment-628</link>
		<dc:creator>brad</dc:creator>
		<pubDate>Tue, 19 May 2009 20:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=518#comment-628</guid>
		<description>Awesome job Mike, these tutorials have been a life saver so far after getting tossed into the world of Macs, the iPhone and Objective C overnight.  Keep them coming!</description>
		<content:encoded><![CDATA[<p>Awesome job Mike, these tutorials have been a life saver so far after getting tossed into the world of Macs, the iPhone and Objective C overnight.  Keep them coming!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
