<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>roobasoft blog &#187; Interface Builder</title>
	<atom:link href="http://roobasoft.com/blog/category/interface-builder/feed/" rel="self" type="application/rss+xml" />
	<link>http://roobasoft.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 05 Aug 2010 13:35:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Burnt by Implicit Overloading (poor naming / thinking on my part)</title>
		<link>http://roobasoft.com/blog/2006/02/08/burnt-by-implicit-overloading-poor-naming-thinking-on-my-part/</link>
		<comments>http://roobasoft.com/blog/2006/02/08/burnt-by-implicit-overloading-poor-naming-thinking-on-my-part/#comments</comments>
		<pubDate>Wed, 08 Feb 2006 12:29:54 +0000</pubDate>
		<dc:creator>BrianC</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Interface Builder]]></category>

		<guid isPermaLink="false">http://roobasoft.com/blog/2006/02/08/burnt-by-implicit-overloading-poor-naming-thinking-on-my-part/</guid>
		<description><![CDATA[I&#8217;m trying to load a NSPanel with a controller that inherits from NSWindowController.  So my controller&#8217;s init calls:


    self = [super initWithWindowNibName:@"NibNameHere"];


and then I call showWindow on my now init&#8217;d controller object.  All pretty straight forward.  Problem is that the dang &#8220;window&#8221; assigned to files owner wasn&#8217;t showing up. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to load a NSPanel with a controller that inherits from NSWindowController.  So my controller&#8217;s init calls:</p>

<p><pre class="code">
    self = [super initWithWindowNibName:@"NibNameHere"];
</pre></p>

<p>and then I call showWindow on my now init&#8217;d controller object.  All pretty straight forward.  Problem is that the dang &#8220;window&#8221; assigned to files owner wasn&#8217;t showing up.  Well, to make a painful story short, the problem was that I stupidly wrote a &#8216;window&#8217; method myself which overrode NSWindowController&#8217;s window method and understandably confused/broke things.  Not sure what I was thinking, probably something like &#8220;oh, I need that &#8216;window&#8217; reference elsewhere, I <em>must</em> need a &#8211; (NSPanel *) window, let me just create that now&#8221;.  Nuked the &#8211; window and all was better in the world.  It&#8217;s been a tough 24 hours.</p>

<p>The lesson learned?  If you&#8217;re panel or window isn&#8217;t showing up when you run initWithWindowNibName / showWindow, make sure you haven&#8217;t overloaded any of your base class implementations with a wrong one of your own.  Although, 90% of the time it probably just means you didn&#8217;t set &#8216;window&#8217; for your Files Owner in IB.</p>
]]></content:encoded>
			<wfw:commentRss>http://roobasoft.com/blog/2006/02/08/burnt-by-implicit-overloading-poor-naming-thinking-on-my-part/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nextKeyView gotcha</title>
		<link>http://roobasoft.com/blog/2006/01/18/nextkeyview-gotcha/</link>
		<comments>http://roobasoft.com/blog/2006/01/18/nextkeyview-gotcha/#comments</comments>
		<pubDate>Thu, 19 Jan 2006 02:27:58 +0000</pubDate>
		<dc:creator>BrianC</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[Interface Builder]]></category>

		<guid isPermaLink="false">http://roobasoft.com/blog/?p=38</guid>
		<description><![CDATA[If your window doesn&#8217;t have an &#8220;InitialFirstResponder&#8221; set, each elements &#8220;nextKeyView&#8221; is ignored.  I guess that makes sense?  Something to remember anyway.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://roobasoft.com/blog/wp-content//nextKeyView.png" border="0" height="107" width="150" alt="nextKeyView.png" align="right" />If your window doesn&#8217;t have an &#8220;InitialFirstResponder&#8221; set, each elements &#8220;nextKeyView&#8221; is ignored.  I guess that makes sense?  Something to remember anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://roobasoft.com/blog/2006/01/18/nextkeyview-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understand IB&#8217;s Exclamation Point *Before* You Ignore It</title>
		<link>http://roobasoft.com/blog/2006/01/02/understand-ibs-exclamation-point-before-you-ignore-it/</link>
		<comments>http://roobasoft.com/blog/2006/01/02/understand-ibs-exclamation-point-before-you-ignore-it/#comments</comments>
		<pubDate>Mon, 02 Jan 2006 12:24:24 +0000</pubDate>
		<dc:creator>BrianC</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Commentary]]></category>
		<category><![CDATA[Interface Builder]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://roobasoft.com/blog/?p=29</guid>
		<description><![CDATA[I just wasted ~2 hours debugging a problem that was the result of my &#8220;IBOutlet NSTableView *profileTableView&#8221; not being wired up in Interface Builder.

When IB knows about an outlet or action that isn&#8217;t wired up, the icon in the instances tab gets an exclamation point in its lower left hand corner. This is a great [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/blog/wp-content//IBWarned.png" border="0" height="57" width="70" alt="IBWarned.png" align="right" />I just wasted ~2 hours debugging a problem that was the result of my &#8220;IBOutlet NSTableView *profileTableView&#8221; not being wired up in Interface Builder.</p>

<p>When IB knows about an outlet or action that isn&#8217;t wired up, the icon in the instances tab gets an exclamation point in its lower left hand corner. This is a great feature.  However, knowing that I hadn&#8217;t yet wired <em>everything</em> up I was fine with my controller having the exclamation point. Little did I know I actually forget to wire up an outlet I was trying to use. Ugh. So the lesson for today was &#8220;look at what&#8217;s not wired up, and if you can, just wire them all up to stubs so the exclamation point carries the meaning it deserves&#8221;.</p>

<p>To prevent this in the future, I&#8217;d like to be able to run in a debug mode where I get an NSLog(@&#8221;BOZO!&#8221;) every time a message was sent to nil. Is that wrong / unreasonable? Does this mode already exist and is easy to attain?</p>
]]></content:encoded>
			<wfw:commentRss>http://roobasoft.com/blog/2006/01/02/understand-ibs-exclamation-point-before-you-ignore-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
