<?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: Exploring iPhone Graphics Part 2</title>
	<atom:link href="http://trailsinthesand.com/exploring-iphone-graphics-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://trailsinthesand.com/exploring-iphone-graphics-part-2/</link>
	<description></description>
	<pubDate>Mon, 22 Mar 2010 14:07:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christian Beer &#187; Blog Archive &#187; Core Graphics Introduction - iPhone Software Engineer</title>
		<link>http://trailsinthesand.com/exploring-iphone-graphics-part-2/comment-page-1/#comment-9702</link>
		<dc:creator>Christian Beer &#187; Blog Archive &#187; Core Graphics Introduction - iPhone Software Engineer</dc:creator>
		<pubDate>Sat, 19 Sep 2009 16:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-2/#comment-9702</guid>
		<description>[...] Exploring iPhone Graphics Part 2 [...]</description>
		<content:encoded><![CDATA[<p>[...] Exploring iPhone Graphics Part 2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 6 Resources For Learning Core Graphics &#124; iPhone Development Tutorials and Tips</title>
		<link>http://trailsinthesand.com/exploring-iphone-graphics-part-2/comment-page-1/#comment-9423</link>
		<dc:creator>6 Resources For Learning Core Graphics &#124; iPhone Development Tutorials and Tips</dc:creator>
		<pubDate>Sat, 12 Sep 2009 06:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-2/#comment-9423</guid>
		<description>[...] Basic shapes tutorial repeated all over the place, this is the best one that I&#8217;ve seen.  Exploring iPhone Graphics Part 2 &#8211; Very good beginners animation tutorial with Core [...]</description>
		<content:encoded><![CDATA[<p>[...] Basic shapes tutorial repeated all over the place, this is the best one that I&#8217;ve seen.  Exploring iPhone Graphics Part 2 &#8211; Very good beginners animation tutorial with Core [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GNull</title>
		<link>http://trailsinthesand.com/exploring-iphone-graphics-part-2/comment-page-1/#comment-5310</link>
		<dc:creator>GNull</dc:creator>
		<pubDate>Sat, 14 Mar 2009 09:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-2/#comment-5310</guid>
		<description>I can't seem to get this Tutorial working either. Would it be possible if someone provided the XCode project in compressed format?

I keep getting the following error. It compiles fun but when it actually launches the simulator (or on the iPhone) it just crashes. The report mentions the following:

Application Specific Information:
iPhone Simulator 2.2 (77.4.9), iPhone OS 2.2.1 (5H11)
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key viewController.'</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to get this Tutorial working either. Would it be possible if someone provided the XCode project in compressed format?</p>
<p>I keep getting the following error. It compiles fun but when it actually launches the simulator (or on the iPhone) it just crashes. The report mentions the following:</p>
<p>Application Specific Information:<br />
iPhone Simulator 2.2 (77.4.9), iPhone OS 2.2.1 (5H11)<br />
*** Terminating app due to uncaught exception &#8216;NSUnknownKeyException&#8217;, reason: &#8216;[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key viewController.&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://trailsinthesand.com/exploring-iphone-graphics-part-2/comment-page-1/#comment-1765</link>
		<dc:creator>david</dc:creator>
		<pubDate>Sun, 19 Oct 2008 02:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-2/#comment-1765</guid>
		<description>Great tutorial! Reminds me of animating with actionscript book I read last year. Similar topics, but what I don't understand is why you allocate memory for position and vector (point2d and vector2 classes) in the init method of Object2d, and then again another alloc in the Graphics View class where point2d and vector2d are allocated again in the initwithframe method?

I commented out the two allocs in the object2d init method and the animation still ran with out errors. Do you really need to allocate two separate copies of point2d and vector2d?

For what its worth memory management has allways confused me...

Thanks.</description>
		<content:encoded><![CDATA[<p>Great tutorial! Reminds me of animating with actionscript book I read last year. Similar topics, but what I don&#8217;t understand is why you allocate memory for position and vector (point2d and vector2 classes) in the init method of Object2d, and then again another alloc in the Graphics View class where point2d and vector2d are allocated again in the initwithframe method?</p>
<p>I commented out the two allocs in the object2d init method and the animation still ran with out errors. Do you really need to allocate two separate copies of point2d and vector2d?</p>
<p>For what its worth memory management has allways confused me&#8230;</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iamdavehi</title>
		<link>http://trailsinthesand.com/exploring-iphone-graphics-part-2/comment-page-1/#comment-215</link>
		<dc:creator>iamdavehi</dc:creator>
		<pubDate>Wed, 02 Jul 2008 12:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-2/#comment-215</guid>
		<description>Do you know if this works on the Beta 8 SDK?
i keep getting an exception error.

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key window.''

any ideas?

thanks
-Dave</description>
		<content:encoded><![CDATA[<p>Do you know if this works on the Beta 8 SDK?<br />
i keep getting an exception error.</p>
<p>*** Terminating app due to uncaught exception &#8216;NSUnknownKeyException&#8217;, reason: &#8216;[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key window.&#8221;</p>
<p>any ideas?</p>
<p>thanks<br />
-Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: i42sasoi</title>
		<link>http://trailsinthesand.com/exploring-iphone-graphics-part-2/comment-page-1/#comment-211</link>
		<dc:creator>i42sasoi</dc:creator>
		<pubDate>Thu, 26 Jun 2008 11:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-2/#comment-211</guid>
		<description>The problem is that the context is always null.Do you know any way to fix it?</description>
		<content:encoded><![CDATA[<p>The problem is that the context is always null.Do you know any way to fix it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: i42sasoi</title>
		<link>http://trailsinthesand.com/exploring-iphone-graphics-part-2/comment-page-1/#comment-209</link>
		<dc:creator>i42sasoi</dc:creator>
		<pubDate>Wed, 25 Jun 2008 16:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-2/#comment-209</guid>
		<description>Hi,

first thanks a lot for your work. I think you make easy.

Reading this second part, inspired me with a problem I have drawing images.
I receive some images from a socket, and I´ve tried to display on the screen,I tried with [self setNeedsDisplay] but It is not call when a frame is received, It just show the last frame received.
I tried to make a function like:

&lt;code&gt;
- (void) draw:(CGRect) rect
{
	
   CGContextRef context = UIGraphicsGetCurrentContext();
   CGContextClearRect(context, rect);
   
   [self drawImage:context];
}

-(void) drawImage:(CGContextRef)ctx
{
CGContextDrawImage(ctx, CGRectMake(0.0, 0.0,320,480), imageFrame.CGImage);
}
&lt;/code&gt;

imageFrame is the image i´ve received throught the socket.
Then i call draw every time a frame is received, but I received the next error:

CGContextClearRect: invalid context
CGContextDrawImage: invalid context

Do you know what I mean? 

Sorry If It is offtopic, but I dont know anybody to ask.
Sorry for my poor English too.
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>first thanks a lot for your work. I think you make easy.</p>
<p>Reading this second part, inspired me with a problem I have drawing images.<br />
I receive some images from a socket, and I´ve tried to display on the screen,I tried with [self setNeedsDisplay] but It is not call when a frame is received, It just show the last frame received.<br />
I tried to make a function like:</p>
<p><code><br />
- (void) draw:(CGRect) rect<br />
{</p>
<p>   CGContextRef context = UIGraphicsGetCurrentContext();<br />
   CGContextClearRect(context, rect);</p>
<p>   [self drawImage:context];<br />
}</p>
<p>-(void) drawImage:(CGContextRef)ctx<br />
{<br />
CGContextDrawImage(ctx, CGRectMake(0.0, 0.0,320,480), imageFrame.CGImage);<br />
}<br />
</code></p>
<p>imageFrame is the image i´ve received throught the socket.<br />
Then i call draw every time a frame is received, but I received the next error:</p>
<p>CGContextClearRect: invalid context<br />
CGContextDrawImage: invalid context</p>
<p>Do you know what I mean? </p>
<p>Sorry If It is offtopic, but I dont know anybody to ask.<br />
Sorry for my poor English too.<br />
Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
