<?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 for KATI</title>
	<atom:link href="http://katidev.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://katidev.com/blog</link>
	<description>Developing Interfaces with Cocoa</description>
	<pubDate>Thu, 24 Jul 2008 00:17:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>Comment on NSViewController, the New C in MVC - Pt. 3 of 3 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>Comment on NSViewController, the New C in MVC - Pt. 3 of 3 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>Comment on NSViewController, the New C in MVC - Pt. 3 of 3 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>Comment on NSViewController, the New C in MVC - Pt. 3 of 3 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>Comment on NSViewController, the New C in MVC - Pt. 3 of 3 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>
	<item>
		<title>Comment on NSViewController, the New C in MVC - Pt. 3 of 3 by jerry</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-212</link>
		<dc:creator>jerry</dc:creator>
		<pubDate>Thu, 12 Jun 2008 21:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-212</guid>
		<description>Ok, I walked through the example code and the magic works (i.e. i dont grok the tech yet).  Then I created a MyView.xib and MyViewController.h/m with a button and a text field.  The controller connects them so textField shows a count of # times button is pushed.  I got the splitView to load these on the left side instead of the Outline, and it worked fine.

However.

My applications are not Document based.  They are conventional Cocoa apps, which start life from the XCode 3.0 New Project Assistant-&#62;Application&#62;Cocoa Application  (and sometimes Cocoa-Python application).  They start off with a Main Menu.nib which has a Window.

How do I make the XS view/window stuff work in this framework?
I tried moving the MyView files over, creating an AppController, removing the Window from MainMenu.xib, creating a MyWindow.xib + Controller, which loads MyView.   The best I was able to get was MyView showing up, but pushing the button drops me into the debugger under [NSApplication sendAction:to:from:].

Apparently the NSApp isnt connected to the window?</description>
		<content:encoded><![CDATA[<p>Ok, I walked through the example code and the magic works (i.e. i dont grok the tech yet).  Then I created a MyView.xib and MyViewController.h/m with a button and a text field.  The controller connects them so textField shows a count of # times button is pushed.  I got the splitView to load these on the left side instead of the Outline, and it worked fine.</p>
<p>However.</p>
<p>My applications are not Document based.  They are conventional Cocoa apps, which start life from the XCode 3.0 New Project Assistant-&gt;Application&gt;Cocoa Application  (and sometimes Cocoa-Python application).  They start off with a Main Menu.nib which has a Window.</p>
<p>How do I make the XS view/window stuff work in this framework?<br />
I tried moving the MyView files over, creating an AppController, removing the Window from MainMenu.xib, creating a MyWindow.xib + Controller, which loads MyView.   The best I was able to get was MyView showing up, but pushing the button drops me into the debugger under [NSApplication sendAction:to:from:].</p>
<p>Apparently the NSApp isnt connected to the window?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NSViewController, the New C in MVC - Pt. 3 of 3 by jerry</title>
		<link>http://katidev.com/blog/2008/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/#comment-211</link>
		<dc:creator>jerry</dc:creator>
		<pubDate>Wed, 11 Jun 2008 20:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=127#comment-211</guid>
		<description>I'm a new Cocoa programmer with a very long history coding elsewhere (i remember learning about ObjC in early 80s along w/smalltalk).  So far I am very pleased with it -- and glad to be coming to party after it has evolved to this state.   I was directed to your blog after posting to cocoa-dev and this article, and example code seem to be a good answer.

WRT the auto/absolute/relative resizing, are you familiar with Layouts in Java? In that architecture a window/view has a Layout which defines how its subviews are laid out.  There are absolute Layouts and relative ones that will automagicially wrap/clip subviews.  It can be quite powerful ... and frustrating.</description>
		<content:encoded><![CDATA[<p>I&#8217;m a new Cocoa programmer with a very long history coding elsewhere (i remember learning about ObjC in early 80s along w/smalltalk).  So far I am very pleased with it &#8212; and glad to be coming to party after it has evolved to this state.   I was directed to your blog after posting to cocoa-dev and this article, and example code seem to be a good answer.</p>
<p>WRT the auto/absolute/relative resizing, are you familiar with Layouts in Java? In that architecture a window/view has a Layout which defines how its subviews are laid out.  There are absolute Layouts and relative ones that will automagicially wrap/clip subviews.  It can be quite powerful &#8230; and frustrating.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WWDC 2008! by Lee</title>
		<link>http://katidev.com/blog/2008/06/07/wwdc-2008/#comment-210</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Mon, 09 Jun 2008 23:28:16 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=137#comment-210</guid>
		<description>Doh! I cant come this year. I was just thinking recently how I almost didn't get to go last year. Oh well.</description>
		<content:encoded><![CDATA[<p>Doh! I cant come this year. I was just thinking recently how I almost didn&#8217;t get to go last year. Oh well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WWDC 2008! by Jonathan Wight</title>
		<link>http://katidev.com/blog/2008/06/07/wwdc-2008/#comment-206</link>
		<dc:creator>Jonathan Wight</dc:creator>
		<pubDate>Sun, 08 Jun 2008 02:05:47 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=137#comment-206</guid>
		<description>See you (and 8000 other Mac Devs) there!</description>
		<content:encoded><![CDATA[<p>See you (and 8000 other Mac Devs) there!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NSViewController, the New C in MVC - Pt. 2 of 3 by Michael</title>
		<link>http://katidev.com/blog/2008/04/17/nsviewcontroller-the-new-c-in-mvc-pt-2-of-3/#comment-205</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 06 Jun 2008 15:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://katidev.com/blog/?p=109#comment-205</guid>
		<description>Speaking of representedObject -- it's worth noting that default setRepresentedObject implementation in NSViewController (not suprisingly) retains the object. So if you use it to represent your document (NSDocument) subclass you end up with circular references/leak.</description>
		<content:encoded><![CDATA[<p>Speaking of representedObject &#8212; it&#8217;s worth noting that default setRepresentedObject implementation in NSViewController (not suprisingly) retains the object. So if you use it to represent your document (NSDocument) subclass you end up with circular references/leak.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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