<?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: Marching Ants With Core Animation</title>
	<atom:link href="http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/</link>
	<description>Taglines are for Windows programmers</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:50:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: andrewzboard</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1330</link>
		<dc:creator>andrewzboard</dc:creator>
		<pubDate>Sat, 03 Apr 2010 00:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1330</guid>
		<description>&lt;p&gt;Ha! That&#039;s a presumption.. but in this case correct.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ha! That&#8217;s a presumption.. but in this case correct.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Long</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1329</link>
		<dc:creator>Matt Long</dc:creator>
		<pubDate>Sat, 03 Apr 2010 00:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1329</guid>
		<description>&lt;p&gt;@andrewzboard&lt;/p&gt;

&lt;p&gt;At least you&#039;re not taking your laptop. ;-) Hope you enjoy the book.&lt;/p&gt;

&lt;p&gt;-Matt&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@andrewzboard</p>

<p>At least you&#8217;re not taking your laptop. ;-) Hope you enjoy the book.</p>

<p>-Matt</p>]]></content:encoded>
	</item>
	<item>
		<title>By: andrewzboard</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1328</link>
		<dc:creator>andrewzboard</dc:creator>
		<pubDate>Sat, 03 Apr 2010 00:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1328</guid>
		<description>&lt;p&gt;Just got the book. Nice work, dude! I am going camping this weekend and (nerd that I am) I am taking the book. :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Just got the book. Nice work, dude! I am going camping this weekend and (nerd that I am) I am taking the book. :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Long</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1326</link>
		<dc:creator>Matt Long</dc:creator>
		<pubDate>Tue, 30 Mar 2010 20:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1326</guid>
		<description>&lt;p&gt;@andrewzboard&lt;/p&gt;

&lt;p&gt;I&#039;m actually not sure why the would be. I would think you would need to specify it explicitly. I&#039;m wondering if there has been an update to the way CA layer bounds work in more recent versions as I don&#039;t recall anything in the docs when I was researching writing the CA book. Will poke around when I have a few minutes and see if I can figure it out.&lt;/p&gt;

&lt;p&gt;-Matt&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@andrewzboard</p>

<p>I&#8217;m actually not sure why the would be. I would think you would need to specify it explicitly. I&#8217;m wondering if there has been an update to the way CA layer bounds work in more recent versions as I don&#8217;t recall anything in the docs when I was researching writing the CA book. Will poke around when I have a few minutes and see if I can figure it out.</p>

<p>-Matt</p>]]></content:encoded>
	</item>
	<item>
		<title>By: andrewzboard</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1325</link>
		<dc:creator>andrewzboard</dc:creator>
		<pubDate>Tue, 30 Mar 2010 19:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1325</guid>
		<description>&lt;p&gt;Matt, I have a question now. I am loving this retro look of having marching ants walk around newly-created objects in my app... but what I find is that in order for the ants&#039; path to align perfectly with the new object (a button in this case), the code has to read as follows:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;[shapeLayer setBounds:CGRectMake(0, 0, 0, 0)];
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;Somehow this wasn&#039;t intuitive; I had previously set the bounds to be the same as those of the button, or the content view, or this and that. Of course, none of those worked. Why the empty or null bounds?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Matt, I have a question now. I am loving this retro look of having marching ants walk around newly-created objects in my app&#8230; but what I find is that in order for the ants&#8217; path to align perfectly with the new object (a button in this case), the code has to read as follows:</p>

<p><pre><code>[shapeLayer setBounds:CGRectMake(0, 0, 0, 0)];
</code></pre></p>

<p>Somehow this wasn&#8217;t intuitive; I had previously set the bounds to be the same as those of the button, or the content view, or this and that. Of course, none of those worked. Why the empty or null bounds?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: andrewzboard</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1321</link>
		<dc:creator>andrewzboard</dc:creator>
		<pubDate>Mon, 29 Mar 2010 17:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1321</guid>
		<description>&lt;p&gt;Ah, my ants are marching now! This is going to be fun to play with. Many thanks. My eyes have been enlightened by this.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ah, my ants are marching now! This is going to be fun to play with. Many thanks. My eyes have been enlightened by this.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: andrewzboard</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1317</link>
		<dc:creator>andrewzboard</dc:creator>
		<pubDate>Sun, 28 Mar 2010 16:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1317</guid>
		<description>&lt;p&gt;BTW, I ordered a copy of your book. On Amazon, it also suggested &quot;You might also like...&quot; and listed my own book! (Obj-C Pocket Ref.) Ah, little pleasures...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>BTW, I ordered a copy of your book. On Amazon, it also suggested &#8220;You might also like&#8230;&#8221; and listed my own book! (Obj-C Pocket Ref.) Ah, little pleasures&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: andrewzboard</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1316</link>
		<dc:creator>andrewzboard</dc:creator>
		<pubDate>Sun, 28 Mar 2010 00:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1316</guid>
		<description>&lt;p&gt;Thanks, setWantsLayer is at the least necessary if not sufficient. I&#039;ll look more closely at his implementation.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks, setWantsLayer is at the least necessary if not sufficient. I&#8217;ll look more closely at his implementation.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Long</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1315</link>
		<dc:creator>Matt Long</dc:creator>
		<pubDate>Sat, 27 Mar 2010 22:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1315</guid>
		<description>&lt;p&gt;@andrewzboard I&#039;m not sure exactly what issues you are having without seeing code, but I can tell you on the desktop if you want to work with layers, you have to make sure your view is layer backed by calling [view setWantsLayer:YES] on it. Look at the earlier comment by John Wight and what he&#039;s linked to. The video he has shows this working on an OS X app.&lt;/p&gt;

&lt;p&gt;-Matt&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@andrewzboard I&#8217;m not sure exactly what issues you are having without seeing code, but I can tell you on the desktop if you want to work with layers, you have to make sure your view is layer backed by calling [view setWantsLayer:YES] on it. Look at the earlier comment by John Wight and what he&#8217;s linked to. The video he has shows this working on an OS X app.</p>

<p>-Matt</p>]]></content:encoded>
	</item>
	<item>
		<title>By: andrewzboard</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1314</link>
		<dc:creator>andrewzboard</dc:creator>
		<pubDate>Sat, 27 Mar 2010 22:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1314</guid>
		<description>&lt;p&gt;I tried reimplementing this as a desktop (i.e. non-Touch) app, and am not quite there. I made the obvious changes, some of which I&#039;ll note here. But a pointer to any gotchas I have missed will be welcome.&lt;/p&gt;

&lt;p&gt;viewDidLoad -&gt; awakeFromNib
UIWindow -&gt; NSWindow
[[UIColor clearColor] CGColor] -&gt; CGColorGetConstantColor(kCGColorClear)&lt;/p&gt;

&lt;p&gt;I instantiated a controller, but did it in the MainMenu.xib file rather than creating a new .xib file, hope that&#039;s OK. Wasn&#039;t sure how to rewrite the code in applicationDidFinishLaunching to be appropriate to AppKit. Suggestions?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I tried reimplementing this as a desktop (i.e. non-Touch) app, and am not quite there. I made the obvious changes, some of which I&#8217;ll note here. But a pointer to any gotchas I have missed will be welcome.</p>

<p>viewDidLoad -&gt; awakeFromNib
UIWindow -&gt; NSWindow
[[UIColor clearColor] CGColor] -&gt; CGColorGetConstantColor(kCGColorClear)</p>

<p>I instantiated a controller, but did it in the MainMenu.xib file rather than creating a new .xib file, hope that&#8217;s OK. Wasn&#8217;t sure how to rewrite the code in applicationDidFinishLaunching to be appropriate to AppKit. Suggestions?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: schwa</title>
		<link>http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/comment-page-1/#comment-1208</link>
		<dc:creator>schwa</dc:creator>
		<pubDate>Wed, 21 Oct 2009 13:23:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=789#comment-1208</guid>
		<description>&lt;p&gt;You can see the same effect here:&lt;/p&gt;

&lt;p&gt;http://www.flickr.com/photos/jwight/3826876252/&lt;/p&gt;

&lt;p&gt;And the code for it (from my MOOF project) is online here:&lt;/p&gt;

&lt;p&gt;http://bitbucket.org/schwa/moof/src/tip/Source/CGameView/CGameMapView.m (grep for highlightLayerForLayer:)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You can see the same effect here:</p>

<p><a href="http://www.flickr.com/photos/jwight/3826876252/" rel="nofollow">http://www.flickr.com/photos/jwight/3826876252/</a></p>

<p>And the code for it (from my MOOF project) is online here:</p>

<p><a href="http://bitbucket.org/schwa/moof/src/tip/Source/CGameView/CGameMapView.m" rel="nofollow">http://bitbucket.org/schwa/moof/src/tip/Source/CGameView/CGameMapView.m</a> (grep for highlightLayerForLayer:)</p>]]></content:encoded>
	</item>
</channel>
</rss>
