<?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: A simple COCOA Asynchronous image loader class to use in your iPhone app.</title>
	<atom:link href="http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/</link>
	<description>Software Developer</description>
	<lastBuildDate>Thu, 12 Jan 2012 09:19:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Curtis Hard</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-251</link>
		<dc:creator>Curtis Hard</dc:creator>
		<pubDate>Fri, 17 Jun 2011 15:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-251</guid>
		<description>your setting cell.imageView.image to imageLoader.image; when you have not waited for the image to load. This is async, meaning you have to wait for the callback to be able to grab the image. =]</description>
		<content:encoded><![CDATA[<p>your setting cell.imageView.image to imageLoader.image; when you have not waited for the image to load. This is async, meaning you have to wait for the callback to be able to grab the image. =]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-246</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 14 Jun 2011 19:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-246</guid>
		<description>Hi,

I tried to load the images into a uitableview, everything works fine, but no pictures appear on the tableview.

can somebody help me what im doing wrong?

NSString *linkche = [[stories objectAtIndex:storyIndex] objectForKey:@&quot;nr&quot;];

GGImageLoader * imageLoader = [[[GGImageLoader alloc] initWithURL:[NSURL URLWithString:[[NSString alloc] initWithFormat:@&quot;theDomain%@.jpg&quot;, linkche]]] retain];

[imageLoader setDelegate:self];

[imageLoader load];

cell.imageView.image = imageLoader.image;

Does anybody know what i am doing wrong?!?

Thank you in advance for your help!!!!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tried to load the images into a uitableview, everything works fine, but no pictures appear on the tableview.</p>
<p>can somebody help me what im doing wrong?</p>
<p>NSString *linkche = [[stories objectAtIndex:storyIndex] objectForKey:@&#8221;nr&#8221;];</p>
<p>GGImageLoader * imageLoader = [[[GGImageLoader alloc] initWithURL:[NSURL URLWithString:[[NSString alloc] initWithFormat:@&#8221;theDomain%@.jpg&#8221;, linkche]]] retain];</p>
<p>[imageLoader setDelegate:self];</p>
<p>[imageLoader load];</p>
<p>cell.imageView.image = imageLoader.image;</p>
<p>Does anybody know what i am doing wrong?!?</p>
<p>Thank you in advance for your help!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Hard</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-135</link>
		<dc:creator>Curtis Hard</dc:creator>
		<pubDate>Wed, 19 Jan 2011 21:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-135</guid>
		<description>Your right, I modified it ;)</description>
		<content:encoded><![CDATA[<p>Your right, I modified it ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: newacct</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-134</link>
		<dc:creator>newacct</dc:creator>
		<pubDate>Wed, 19 Jan 2011 21:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-134</guid>
		<description>mutData = [[NSMutableData new] retain];

VERY BAD! -new already does a retain, so you are double-retaining</description>
		<content:encoded><![CDATA[<p>mutData = [[NSMutableData new] retain];</p>
<p>VERY BAD! -new already does a retain, so you are double-retaining</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Hard</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-123</link>
		<dc:creator>Curtis Hard</dc:creator>
		<pubDate>Tue, 16 Feb 2010 20:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-123</guid>
		<description>Hello yves,

Its really simple, basically, think of it like this : anything you allocate will be automatically released, so [[UIView alloc] init]; will be picked up my the run loops etc and released accordingly. When you stick retain on it, it puts the retain count up by one, starts with 0, then you +1 to it, so now when the auto release pools run, it will ignore your object and wont get released. Likewise, if you run release on it, it will get rid of it from memory. If you dont retain objects when you need to, then problems occur when your trying to call the object, but it has already been released from memory, thus causing epic fail.

If that helps what so ever...and remember to follow @caffeinatedapp for my latest news on my app ;)</description>
		<content:encoded><![CDATA[<p>Hello yves,</p>
<p>Its really simple, basically, think of it like this : anything you allocate will be automatically released, so [[UIView alloc] init]; will be picked up my the run loops etc and released accordingly. When you stick retain on it, it puts the retain count up by one, starts with 0, then you +1 to it, so now when the auto release pools run, it will ignore your object and wont get released. Likewise, if you run release on it, it will get rid of it from memory. If you dont retain objects when you need to, then problems occur when your trying to call the object, but it has already been released from memory, thus causing epic fail.</p>
<p>If that helps what so ever&#8230;and remember to follow @caffeinatedapp for my latest news on my app ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yves</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-122</link>
		<dc:creator>yves</dc:creator>
		<pubDate>Tue, 16 Feb 2010 20:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-122</guid>
		<description>Hi, thank you for this - I had been looking for how do do that. I am still learning memory management, read a few books, etc... but I guess most examples I have seen were simple. If you are looking for an idea for your next log, explaining the retain and release in GGImageLoader would be great. Thank you.</description>
		<content:encoded><![CDATA[<p>Hi, thank you for this &#8211; I had been looking for how do do that. I am still learning memory management, read a few books, etc&#8230; but I guess most examples I have seen were simple. If you are looking for an idea for your next log, explaining the retain and release in GGImageLoader would be great. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lockerrushing</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-120</link>
		<dc:creator>lockerrushing</dc:creator>
		<pubDate>Mon, 02 Nov 2009 06:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-120</guid>
		<description>Thanks for the fast reply. Just ordered some cocoa books. I think I need to run through the basics first.

Peace</description>
		<content:encoded><![CDATA[<p>Thanks for the fast reply. Just ordered some cocoa books. I think I need to run through the basics first.</p>
<p>Peace</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Hard</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-119</link>
		<dc:creator>Curtis Hard</dc:creator>
		<pubDate>Sun, 01 Nov 2009 23:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-119</guid>
		<description>Ill do a future post on posting to servers, whenever I get time.

An NSURLConnection has delegate methods ( methods that are called when events happen, just like AS3&#039;s EventDispatcher ), basically the NSURLConnection will stream the required NSURL contents via NSData through that function. Because they are received in parts we have to construct the overall data object, so as you can see, I have set up a NSMutableData object which im appending the NSData that is received. Its pretty simple.

Also im a AS3 developer ;), its a bit like the ProgressEvent in AS3, apart from instead of a percent and bytes loaded / bytes total, it also gives you the data it recieves =].

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Ill do a future post on posting to servers, whenever I get time.</p>
<p>An NSURLConnection has delegate methods ( methods that are called when events happen, just like AS3&#8242;s EventDispatcher ), basically the NSURLConnection will stream the required NSURL contents via NSData through that function. Because they are received in parts we have to construct the overall data object, so as you can see, I have set up a NSMutableData object which im appending the NSData that is received. Its pretty simple.</p>
<p>Also im a AS3 developer ;), its a bit like the ProgressEvent in AS3, apart from instead of a percent and bytes loaded / bytes total, it also gives you the data it recieves =].</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lockerrushing</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-118</link>
		<dc:creator>lockerrushing</dc:creator>
		<pubDate>Sun, 01 Nov 2009 20:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-118</guid>
		<description>Thanks for the post. I am just starting out and was wondering if you could show me how to do a form post?

I am trying to create a batch poster in cocoa. I will need to feed in an encoded cookie string and POST it to the server every 500 milliseconds.

Any thoughts?

Also, how does this work: 
- (void)connection:(NSURLConnection *)connection
	didReceiveData:(NSData *)data
{

I am coming from an AS background, what is this technique called?

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the post. I am just starting out and was wondering if you could show me how to do a form post?</p>
<p>I am trying to create a batch poster in cocoa. I will need to feed in an encoded cookie string and POST it to the server every 500 milliseconds.</p>
<p>Any thoughts?</p>
<p>Also, how does this work:<br />
- (void)connection:(NSURLConnection *)connection<br />
	didReceiveData:(NSData *)data<br />
{</p>
<p>I am coming from an AS background, what is this technique called?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lilikindsli</title>
		<link>http://www.geekygoodness.com/2009/09/13/a-simple-cocoa-asynchronous-image-loader-class-to-use-in-your-iphone-app/comment-page-1/#comment-45</link>
		<dc:creator>lilikindsli</dc:creator>
		<pubDate>Sun, 04 Oct 2009 21:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekygoodness.com/?p=96#comment-45</guid>
		<description>GJaldN I want to say - thank you for this!</description>
		<content:encoded><![CDATA[<p>GJaldN I want to say &#8211; thank you for this!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

