<?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: Programming my iPhone &#8211; A Brave New World &#8211; MVC Architecture</title>
	<atom:link href="http://gotfuzz.com/2009/03/30/programming-my-iphone-a-brave-new-world-mvc-architecture/feed/" rel="self" type="application/rss+xml" />
	<link>http://gotfuzz.com/2009/03/30/programming-my-iphone-a-brave-new-world-mvc-architecture/</link>
	<description>Have you got fuzz?</description>
	<lastBuildDate>Mon, 05 Apr 2010 03:16:19 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mek_man</title>
		<link>http://gotfuzz.com/2009/03/30/programming-my-iphone-a-brave-new-world-mvc-architecture/comment-page-1/#comment-6065</link>
		<dc:creator>mek_man</dc:creator>
		<pubDate>Wed, 09 Dec 2009 23:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://gotfuzz.com/?p=154#comment-6065</guid>
		<description>the blog needs an update... asap! : )</description>
		<content:encoded><![CDATA[<p>the blog needs an update&#8230; asap! : )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Merryl</title>
		<link>http://gotfuzz.com/2009/03/30/programming-my-iphone-a-brave-new-world-mvc-architecture/comment-page-1/#comment-6062</link>
		<dc:creator>Merryl</dc:creator>
		<pubDate>Sun, 12 Apr 2009 19:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://gotfuzz.com/?p=154#comment-6062</guid>
		<description>Matt, thanks for the clarification. I think you&#039;ve stated what I was trying to communicate more clearly. When I said that the model talks to the controller, I simply meant that messages are sent between the model and controller, not that that the model has a reference to the controller object.

I like your pseudocode, but I&#039;m not sure that I completely agree with it. When I&#039;m developing my iPhone apps, the View does not recieve a reference to the Model. I think this has to do with the idea that each of the three key objects in MVC should be portable and message based. This allows the view to be applied to other models.

I would look at the difference between figures 4-5 and 4-6 at this site:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html

4-5 sounds like the MVC design pattern that you&#039;re referring to, where the View has a reference to the Model. However, Cocoa (and I believe Cocoa Touch) use what is in 4-6, where the Model only interacts with the Controller.

This is the type of discussion I&#039;ve been looking for. Thanks!</description>
		<content:encoded><![CDATA[<p>Matt, thanks for the clarification. I think you&#8217;ve stated what I was trying to communicate more clearly. When I said that the model talks to the controller, I simply meant that messages are sent between the model and controller, not that that the model has a reference to the controller object.</p>
<p>I like your pseudocode, but I&#8217;m not sure that I completely agree with it. When I&#8217;m developing my iPhone apps, the View does not recieve a reference to the Model. I think this has to do with the idea that each of the three key objects in MVC should be portable and message based. This allows the view to be applied to other models.</p>
<p>I would look at the difference between figures 4-5 and 4-6 at this site:<br />
<a href="http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html" rel="nofollow">http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html</a></p>
<p>4-5 sounds like the MVC design pattern that you&#8217;re referring to, where the View has a reference to the Model. However, Cocoa (and I believe Cocoa Touch) use what is in 4-6, where the Model only interacts with the Controller.</p>
<p>This is the type of discussion I&#8217;ve been looking for. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://gotfuzz.com/2009/03/30/programming-my-iphone-a-brave-new-world-mvc-architecture/comment-page-1/#comment-6061</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sat, 11 Apr 2009 22:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://gotfuzz.com/?p=154#comment-6061</guid>
		<description>&quot;Model speaks to Controller which speaks to View&quot;

Actually, the model should not understand any of the other constituent parts in the MVC pattern. The view holds a reference to the model. The controller will reference both the model and view. Sometimes the view and controller are conflated into just the view. The model is unaware of anything but itself. It may, however, trigger events for other classes who are in an Observer relationship with it.

So you&#039;ll have pseudocode that looks like this:

Model theModel = new Model(); //notice how it doesn&#039;t know about any other classes?
View theView = new View(theModel); // to get state from the application
Controller theController = new Controller(theModel, theView0; // to control application logic and flow

I&#039;m still figuring out MVC in iPhone-land because it looks a bit different in this environment than in others (which is actually how I found your blog post). Best of luck!</description>
		<content:encoded><![CDATA[<p>&#8220;Model speaks to Controller which speaks to View&#8221;</p>
<p>Actually, the model should not understand any of the other constituent parts in the MVC pattern. The view holds a reference to the model. The controller will reference both the model and view. Sometimes the view and controller are conflated into just the view. The model is unaware of anything but itself. It may, however, trigger events for other classes who are in an Observer relationship with it.</p>
<p>So you&#8217;ll have pseudocode that looks like this:</p>
<p>Model theModel = new Model(); //notice how it doesn&#8217;t know about any other classes?<br />
View theView = new View(theModel); // to get state from the application<br />
Controller theController = new Controller(theModel, theView0; // to control application logic and flow</p>
<p>I&#8217;m still figuring out MVC in iPhone-land because it looks a bit different in this environment than in others (which is actually how I found your blog post). Best of luck!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

