<?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: Magical iPhone View Controllers</title>
	<atom:link href="http://www.cimgf.com/2009/05/11/magical-iphone-view-controllers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cimgf.com/2009/05/11/magical-iphone-view-controllers/</link>
	<description>Taglines are for Windows programmers</description>
	<lastBuildDate>Fri, 12 Mar 2010 03:21:12 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: edog1203</title>
		<link>http://www.cimgf.com/2009/05/11/magical-iphone-view-controllers/comment-page-1/#comment-1207</link>
		<dc:creator>edog1203</dc:creator>
		<pubDate>Thu, 01 Oct 2009 06:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=531#comment-1207</guid>
		<description>&lt;p&gt;Documented as of iPhone OS 3.0, but works on 2.x (not sure what version, exactly) as well.&lt;/p&gt;

&lt;p&gt;http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/nibName&lt;/p&gt;

&lt;p&gt;For a view controller titled MyViewController, it will look for MyViewController.nib as well as MyView.nib (in that order).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Documented as of iPhone OS 3.0, but works on 2.x (not sure what version, exactly) as well.</p>

<p><a href="http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/nibName" rel="nofollow">http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/nibName</a></p>

<p>For a view controller titled MyViewController, it will look for MyViewController.nib as well as MyView.nib (in that order).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Long</title>
		<link>http://www.cimgf.com/2009/05/11/magical-iphone-view-controllers/comment-page-1/#comment-1203</link>
		<dc:creator>Matt Long</dc:creator>
		<pubDate>Tue, 12 May 2009 15:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=531#comment-1203</guid>
		<description>&lt;p&gt;@chevol&lt;/p&gt;

&lt;p&gt;Can you provide a link to said Apple documentation? Would love to post it in the article.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;

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

<p>Can you provide a link to said Apple documentation? Would love to post it in the article.</p>

<p>Thanks.</p>

<p>-Matt</p>]]></content:encoded>
	</item>
	<item>
		<title>By: chevol</title>
		<link>http://www.cimgf.com/2009/05/11/magical-iphone-view-controllers/comment-page-1/#comment-1202</link>
		<dc:creator>chevol</dc:creator>
		<pubDate>Tue, 12 May 2009 15:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=531#comment-1202</guid>
		<description>&lt;p&gt;This is in the Apple Documentation as well as in a couple books like Erica Sadum&#039;s.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is in the Apple Documentation as well as in a couple books like Erica Sadum&#8217;s.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.cimgf.com/2009/05/11/magical-iphone-view-controllers/comment-page-1/#comment-1201</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Tue, 12 May 2009 04:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=531#comment-1201</guid>
		<description>&lt;p&gt;Well, well.  Two different friends noticed similar magic, and after poking around I noticed when you have a view controller in a nib, you can set its nib name property.  See the view controller in MainWindow.nib, for example.  So I thought there wasn&#039;t really magic after all.&lt;/p&gt;

&lt;p&gt;But this seems to prove there *is magic, since there&#039;s nowhere in any nib file where MySpiffyView can be specified as the nib name, as far as I can tell.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Well, well.  Two different friends noticed similar magic, and after poking around I noticed when you have a view controller in a nib, you can set its nib name property.  See the view controller in MainWindow.nib, for example.  So I thought there wasn&#8217;t really magic after all.</p>

<p>But this seems to prove there *is magic, since there&#8217;s nowhere in any nib file where MySpiffyView can be specified as the nib name, as far as I can tell.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Long</title>
		<link>http://www.cimgf.com/2009/05/11/magical-iphone-view-controllers/comment-page-1/#comment-1200</link>
		<dc:creator>Matt Long</dc:creator>
		<pubDate>Mon, 11 May 2009 20:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=531#comment-1200</guid>
		<description>&lt;p&gt;@claas.lange&lt;/p&gt;

&lt;p&gt;I had a similar thought at first, but you&#039;re talking about the wrong direction. How can the code know which resource to use if you don&#039;t specify it with alloc/initWitNibName? Also, if you change the name of the xib filename, the view no longer loads properly.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;/p&gt;

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

<p>I had a similar thought at first, but you&#8217;re talking about the wrong direction. How can the code know which resource to use if you don&#8217;t specify it with alloc/initWitNibName? Also, if you change the name of the xib filename, the view no longer loads properly.</p>

<p>Best regards,</p>

<p>-Matt</p>]]></content:encoded>
	</item>
	<item>
		<title>By: claas.lange</title>
		<link>http://www.cimgf.com/2009/05/11/magical-iphone-view-controllers/comment-page-1/#comment-1199</link>
		<dc:creator>claas.lange</dc:creator>
		<pubDate>Mon, 11 May 2009 19:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=531#comment-1199</guid>
		<description>&lt;p&gt;Maybe the View Controllers knows about the files it &quot;owns&quot;. Since you set the File&#039;s Owner property in IB, this could be an explanation. Or it&#039;s just clever naming conventions.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Maybe the View Controllers knows about the files it &#8220;owns&#8221;. Since you set the File&#8217;s Owner property in IB, this could be an explanation. Or it&#8217;s just clever naming conventions.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: apinske</title>
		<link>http://www.cimgf.com/2009/05/11/magical-iphone-view-controllers/comment-page-1/#comment-1198</link>
		<dc:creator>apinske</dc:creator>
		<pubDate>Mon, 11 May 2009 18:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=531#comment-1198</guid>
		<description>&lt;p&gt;Yeah. That&#039;s absolutely brilliant behavior. I have often written this on my own, i.e. make the init method call supers initWithNibName:bundle: because i hate it when the class instantiating my view controller, e.g. its parent, ... needs to know how the nib is named. In my opinion this should be a well hidden private implementation detail and not a parameter.&lt;/p&gt;

&lt;p&gt;My 2 cents.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yeah. That&#8217;s absolutely brilliant behavior. I have often written this on my own, i.e. make the init method call supers initWithNibName:bundle: because i hate it when the class instantiating my view controller, e.g. its parent, &#8230; needs to know how the nib is named. In my opinion this should be a well hidden private implementation detail and not a parameter.</p>

<p>My 2 cents.</p>]]></content:encoded>
	</item>
</channel>
</rss>
