<?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: Basic Memory Management: EFF-ing up my arrays</title>
	<atom:link href="http://www.livetotry.com/2010/05/29/basic-memory-management-eff-ing-up-my-arrays/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.livetotry.com/2010/05/29/basic-memory-management-eff-ing-up-my-arrays/</link>
	<description>this is what passion A.D.D. looks like</description>
	<lastBuildDate>Sat, 17 Dec 2011 16:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Austin</title>
		<link>http://www.livetotry.com/2010/05/29/basic-memory-management-eff-ing-up-my-arrays/comment-page-1/#comment-1423</link>
		<dc:creator>Austin</dc:creator>
		<pubDate>Fri, 17 Dec 2010 18:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.livetotry.com/?p=528#comment-1423</guid>
		<description>Thanks a bunch for this, it got me back on track.

ausitn</description>
		<content:encoded><![CDATA[<p>Thanks a bunch for this, it got me back on track.</p>
<p>ausitn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thanks!</title>
		<link>http://www.livetotry.com/2010/05/29/basic-memory-management-eff-ing-up-my-arrays/comment-page-1/#comment-480</link>
		<dc:creator>Thanks!</dc:creator>
		<pubDate>Wed, 28 Jul 2010 06:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.livetotry.com/?p=528#comment-480</guid>
		<description>Thank you!  I was stuck for so long trying to understand why I was getting a memory error and this solved it!  Thanks!</description>
		<content:encoded><![CDATA[<p>Thank you!  I was stuck for so long trying to understand why I was getting a memory error and this solved it!  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: am</title>
		<link>http://www.livetotry.com/2010/05/29/basic-memory-management-eff-ing-up-my-arrays/comment-page-1/#comment-371</link>
		<dc:creator>am</dc:creator>
		<pubDate>Thu, 03 Jun 2010 02:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.livetotry.com/?p=528#comment-371</guid>
		<description>Richard,

The errors are definitely frustrating, especially EXEC_BAD_ACCESS. Though i am usually able to debug them fairly quickly without too much hair-pulling :)

Reading through the docs has definitely been helping me, and I actually don&#039;t find it that unintuitive. But it&#039;s certainly a slow process learning, as there is a not of material i need to absorb!

Will you be at WWDC?

What is your favorite thing about Android?</description>
		<content:encoded><![CDATA[<p>Richard,</p>
<p>The errors are definitely frustrating, especially EXEC_BAD_ACCESS. Though i am usually able to debug them fairly quickly without too much hair-pulling <img src='http://www.livetotry.com/talk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Reading through the docs has definitely been helping me, and I actually don&#8217;t find it that unintuitive. But it&#8217;s certainly a slow process learning, as there is a not of material i need to absorb!</p>
<p>Will you be at WWDC?</p>
<p>What is your favorite thing about Android?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: am</title>
		<link>http://www.livetotry.com/2010/05/29/basic-memory-management-eff-ing-up-my-arrays/comment-page-1/#comment-370</link>
		<dc:creator>am</dc:creator>
		<pubDate>Thu, 03 Jun 2010 02:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.livetotry.com/?p=528#comment-370</guid>
		<description>Thank you so much for taking the time to comment and clarify this for me. I have printed out the memory management docs and have been reading slowly through them. I will post a corrected version of this blog soon.  Again, thanks for your input!</description>
		<content:encoded><![CDATA[<p>Thank you so much for taking the time to comment and clarify this for me. I have printed out the memory management docs and have been reading slowly through them. I will post a corrected version of this blog soon.  Again, thanks for your input!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard L. Burton III</title>
		<link>http://www.livetotry.com/2010/05/29/basic-memory-management-eff-ing-up-my-arrays/comment-page-1/#comment-369</link>
		<dc:creator>Richard L. Burton III</dc:creator>
		<pubDate>Thu, 03 Jun 2010 00:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.livetotry.com/?p=528#comment-369</guid>
		<description>Memory management in Objective-C has always been something I&#039;ve disliked. Take the following quote from Apple:

&quot;You take ownership of an object if you create it using a method whose name begins with “alloc” or “new” or contains “copy” (for example, alloc, newObject, or mutableCopy), or if you send it a retain message. You are responsible for relinquishing ownership of objects you own using release or autorelease. Any other time you receive an object, you must not release it.&quot;

There&#039;s a serious lack of thought when a rule is defined like this, not to mention that they actually make state the following afterwards &quot;The following rules derive from the fundamental rule, or cope with edge cases&quot;

In the meanwhile, Google has made a good choice in their implementation for the Android platform. No only does performance excel, but you don&#039;t need to worry yourself about such mornic rules. ;)

Now here&#039;s a question, do you really enjoy the error messages you receive during development? :) 

On that note, check out http://clang-analyzer.llvm.org/ it&#039;ll help you identify bugs quicker.

Regards,

Richard L. Burton III</description>
		<content:encoded><![CDATA[<p>Memory management in Objective-C has always been something I&#8217;ve disliked. Take the following quote from Apple:</p>
<p>&#8220;You take ownership of an object if you create it using a method whose name begins with “alloc” or “new” or contains “copy” (for example, alloc, newObject, or mutableCopy), or if you send it a retain message. You are responsible for relinquishing ownership of objects you own using release or autorelease. Any other time you receive an object, you must not release it.&#8221;</p>
<p>There&#8217;s a serious lack of thought when a rule is defined like this, not to mention that they actually make state the following afterwards &#8220;The following rules derive from the fundamental rule, or cope with edge cases&#8221;</p>
<p>In the meanwhile, Google has made a good choice in their implementation for the Android platform. No only does performance excel, but you don&#8217;t need to worry yourself about such mornic rules. <img src='http://www.livetotry.com/talk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Now here&#8217;s a question, do you really enjoy the error messages you receive during development? <img src='http://www.livetotry.com/talk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>On that note, check out <a href="http://clang-analyzer.llvm.org/" rel="nofollow">http://clang-analyzer.llvm.org/</a> it&#8217;ll help you identify bugs quicker.</p>
<p>Regards,</p>
<p>Richard L. Burton III</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guy smiley</title>
		<link>http://www.livetotry.com/2010/05/29/basic-memory-management-eff-ing-up-my-arrays/comment-page-1/#comment-359</link>
		<dc:creator>guy smiley</dc:creator>
		<pubDate>Wed, 02 Jun 2010 06:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.livetotry.com/?p=528#comment-359</guid>
		<description>&quot;Retaining objects set to autorelease allows them to persist beyond a single method.&quot;

this is not what retain means. it is critically important to understand that. avoid anyone else&#039;s (erica sadun&#039;s) reformulation of the cocoa memory management rules. just read apple&#039;s cocoa memory docs. they&#039;re astonishingly simple and straightforward. time and time again, people reword the guidelines in their own voice and make statements that contain or otherwise introduce subtle errors in the rules or how you should think about them.

&quot;[NSMutableArray array], which returns an autoreleased NSMutableArray &quot;

this is a prime example of what i mean above. the documentation of nsarray/nsmutable does not state that the object you receive is autoreleased. in fact, the documentation explicitly avoids saying this. maybe you get an autoreleased object. maybe you don&#039;t. it isn&#039;t your concern. all you should care about is that /you don&#039;t own it/ and may need to retain it, depending on the situation.</description>
		<content:encoded><![CDATA[<p>&#8220;Retaining objects set to autorelease allows them to persist beyond a single method.&#8221;</p>
<p>this is not what retain means. it is critically important to understand that. avoid anyone else&#8217;s (erica sadun&#8217;s) reformulation of the cocoa memory management rules. just read apple&#8217;s cocoa memory docs. they&#8217;re astonishingly simple and straightforward. time and time again, people reword the guidelines in their own voice and make statements that contain or otherwise introduce subtle errors in the rules or how you should think about them.</p>
<p>&#8220;[NSMutableArray array], which returns an autoreleased NSMutableArray &#8221;</p>
<p>this is a prime example of what i mean above. the documentation of nsarray/nsmutable does not state that the object you receive is autoreleased. in fact, the documentation explicitly avoids saying this. maybe you get an autoreleased object. maybe you don&#8217;t. it isn&#8217;t your concern. all you should care about is that /you don&#8217;t own it/ and may need to retain it, depending on the situation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

