<?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: NSViewController, the New C in MVC - Pt. 3 of 3</title>
	<atom:link href="http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/</link>
	<description>Developing Interfaces with Cocoa</description>
	<pubDate>Fri, 21 Nov 2008 16:05:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: cathy</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-238</link>
		<dc:creator>cathy</dc:creator>
		<pubDate>Thu, 25 Sep 2008 09:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-238</guid>
		<description>Hi Dennis, 

No, you still need the actual view itself - either NSSplitView or RBSplitView.  You can use a controller to lay out two views next to each other, but if you want the interactive features of a split view - mainly the movable divider - you'll want to use what you have now.  

Good luck!</description>
		<content:encoded><![CDATA[<p>Hi Dennis, </p>
<p>No, you still need the actual view itself - either NSSplitView or RBSplitView.  You can use a controller to lay out two views next to each other, but if you want the interactive features of a split view - mainly the movable divider - you&#8217;ll want to use what you have now.  </p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Christopher</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-237</link>
		<dc:creator>Dennis Christopher</dc:creator>
		<pubDate>Wed, 24 Sep 2008 14:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-237</guid>
		<description>Hi Cathy,

Thanks for this series--it's great for us Cocoa GUI developers.

I have a legacy project begun with a single window (non-doc based) application that uses RBSplitView which is said to be an improvement over the built-in NSSplitView. I find it a bit complicated to use. Can you comment on how it may compare to the XS framework, and specifically whether the latter is meant to handle split views as well?</description>
		<content:encoded><![CDATA[<p>Hi Cathy,</p>
<p>Thanks for this series&#8211;it&#8217;s great for us Cocoa GUI developers.</p>
<p>I have a legacy project begun with a single window (non-doc based) application that uses RBSplitView which is said to be an improvement over the built-in NSSplitView. I find it a bit complicated to use. Can you comment on how it may compare to the XS framework, and specifically whether the latter is meant to handle split views as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-236</link>
		<dc:creator>name</dc:creator>
		<pubDate>Mon, 01 Sep 2008 03:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-236</guid>
		<description>Hi!,</description>
		<content:encoded><![CDATA[<p>Hi!,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-235</link>
		<dc:creator>name</dc:creator>
		<pubDate>Mon, 01 Sep 2008 01:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-235</guid>
		<description>Hello!,</description>
		<content:encoded><![CDATA[<p>Hello!,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-234</link>
		<dc:creator>name</dc:creator>
		<pubDate>Mon, 01 Sep 2008 01:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-234</guid>
		<description>Good day!,</description>
		<content:encoded><![CDATA[<p>Good day!,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: professional</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-220</link>
		<dc:creator>professional</dc:creator>
		<pubDate>Sun, 20 Jul 2008 10:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-220</guid>
		<description>Hello. I think you are eactly thinking like Sukrat. I really loved the post.</description>
		<content:encoded><![CDATA[<p>Hello. I think you are eactly thinking like Sukrat. I really loved the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duncan Robertson</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-217</link>
		<dc:creator>Duncan Robertson</dc:creator>
		<pubDate>Mon, 23 Jun 2008 19:34:07 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-217</guid>
		<description>I attended wwdc for the first time last week. Although I got lots from the conference, the thing I find that advances my knowledge quickest, is when people trigger things that have been whirling in your head to make you go aaahh .. I see ...  These 3 articles from Jonathan and yourself have triggered such a moment. Thankyou to you both.</description>
		<content:encoded><![CDATA[<p>I attended wwdc for the first time last week. Although I got lots from the conference, the thing I find that advances my knowledge quickest, is when people trigger things that have been whirling in your head to make you go aaahh .. I see &#8230;  These 3 articles from Jonathan and yourself have triggered such a moment. Thankyou to you both.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerry</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-215</link>
		<dc:creator>jerry</dc:creator>
		<pubDate>Mon, 16 Jun 2008 16:32:58 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-215</guid>
		<description>love to drop an email, but I cant find your addr.  google did turn up some interesting leads --- were you looking for a powerglove serial adapter back in 2004?</description>
		<content:encoded><![CDATA[<p>love to drop an email, but I cant find your addr.  google did turn up some interesting leads &#8212; were you looking for a powerglove serial adapter back in 2004?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cathy</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-214</link>
		<dc:creator>Cathy</dc:creator>
		<pubDate>Sun, 15 Jun 2008 16:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-214</guid>
		<description>Hi Jerry,

Been away from my computer for the past week (WWDC).  Glad to see that you seem to have solved your problem.  I'll be sure to address the issue of a non-document based application with the next update to the view controllers.

Thanks for sharing your solution and if you have more questions, don't hesitate to send me an email. :)</description>
		<content:encoded><![CDATA[<p>Hi Jerry,</p>
<p>Been away from my computer for the past week (WWDC).  Glad to see that you seem to have solved your problem.  I&#8217;ll be sure to address the issue of a non-document based application with the next update to the view controllers.</p>
<p>Thanks for sharing your solution and if you have more questions, don&#8217;t hesitate to send me an email. <img src='http://katidev.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerry</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-213</link>
		<dc:creator>jerry</dc:creator>
		<pubDate>Sun, 15 Jun 2008 05:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-213</guid>
		<description>I figured out how to make it work with my non-document app, but not with the XS stuff.  I'm not quite clear on why that is needed as my solution seems to work ok.  Does the XS/Resonder stuff address the layout issue?

I posted my solution back on the cocoa-dev list (june 14 2008 postings)
It required a bit of code in my AppController specifically

@interface AppController : NSObject {
	IBOutlet NSWindowController *windowController;
	NSViewController *viewController;
}

@implementation AppController
- (id)init
{
	if ( self = [super init] )
	{
            // substitute yourView's nib + controller names in next line
		viewController = [[TheViewController alloc] initWithNibName:@"TheView" bundle:nil];
	}
	return self;
}

- (void)awakeFromNib
{
	[viewController.view setFrame:[windowController.window.contentView frame]];
	[windowController.window.contentView addSubview:viewController.view];
}
@end

plus adding an NSWindowController, putting both into the MainMenu.nib and connecting them there.

Then in TheView.xib I set the FileOwner to be TheViewController and connect its view in IB... and set up all the other widgets/connections.

That seems to work and can be copied/shared with other apps.</description>
		<content:encoded><![CDATA[<p>I figured out how to make it work with my non-document app, but not with the XS stuff.  I&#8217;m not quite clear on why that is needed as my solution seems to work ok.  Does the XS/Resonder stuff address the layout issue?</p>
<p>I posted my solution back on the cocoa-dev list (june 14 2008 postings)<br />
It required a bit of code in my AppController specifically</p>
<p>@interface AppController : NSObject {<br />
	IBOutlet NSWindowController *windowController;<br />
	NSViewController *viewController;<br />
}</p>
<p>@implementation AppController<br />
- (id)init<br />
{<br />
	if ( self = [super init] )<br />
	{<br />
            // substitute yourView&#8217;s nib + controller names in next line<br />
		viewController = [[TheViewController alloc] initWithNibName:@&#8221;TheView&#8221; bundle:nil];<br />
	}<br />
	return self;<br />
}</p>
<p>- (void)awakeFromNib<br />
{<br />
	[viewController.view setFrame:[windowController.window.contentView frame]];<br />
	[windowController.window.contentView addSubview:viewController.view];<br />
}<br />
@end</p>
<p>plus adding an NSWindowController, putting both into the MainMenu.nib and connecting them there.</p>
<p>Then in TheView.xib I set the FileOwner to be TheViewController and connect its view in IB&#8230; and set up all the other widgets/connections.</p>
<p>That seems to work and can be copied/shared with other apps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.386 seconds -->
