<?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"
	>
<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>Sun, 27 Jul 2008 07:53:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: iamdavehi</title>
		<link>http://trailsinthesand.com/exploring-iphone-graphics-part-2/#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-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-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>
