<?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: Why PureMVC Kicks Ass (and one reason it doesn&#8217;t)</title>
	<atom:link href="http://9mmedia.com/blog/?feed=rss2&#038;p=9" rel="self" type="application/rss+xml" />
	<link>http://9mmedia.com/blog/?p=9</link>
	<description>Flex / Actionscript  / Java</description>
	<lastBuildDate>Fri, 03 Sep 2010 15:41:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tyreseby</title>
		<link>http://9mmedia.com/blog/?p=9&#038;cpage=1#comment-1778</link>
		<dc:creator>Tyreseby</dc:creator>
		<pubDate>Wed, 19 Mar 2008 09:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://9mmedia.com/blog/?p=9#comment-1778</guid>
		<description>thanks much, bro</description>
		<content:encoded><![CDATA[<p>thanks much, bro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lauren</title>
		<link>http://9mmedia.com/blog/?p=9&#038;cpage=1#comment-1258</link>
		<dc:creator>lauren</dc:creator>
		<pubDate>Wed, 13 Feb 2008 15:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://9mmedia.com/blog/?p=9#comment-1258</guid>
		<description>Jackson:
It does make sense to have the mediators responsible for their own names.  And this was the course we took in the instance where we needed them to be dynamically named, they grab their name from the uid of the view they are mediating.  
This becomes a problem in retrieving the mediator if you do not have access to the view component, therefore do not know the name of the mediator you are trying to use.  
In that case, static names are a plus.  We have stated to use static names for our mediators that may be called on from more than one component and will never be instantiated more than once, such as the entire application mediator.</description>
		<content:encoded><![CDATA[<p>Jackson:<br />
It does make sense to have the mediators responsible for their own names.  And this was the course we took in the instance where we needed them to be dynamically named, they grab their name from the uid of the view they are mediating.<br />
This becomes a problem in retrieving the mediator if you do not have access to the view component, therefore do not know the name of the mediator you are trying to use.<br />
In that case, static names are a plus.  We have stated to use static names for our mediators that may be called on from more than one component and will never be instantiated more than once, such as the entire application mediator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jackson</title>
		<link>http://9mmedia.com/blog/?p=9&#038;cpage=1#comment-1250</link>
		<dc:creator>Jackson</dc:creator>
		<pubDate>Tue, 12 Feb 2008 18:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://9mmedia.com/blog/?p=9#comment-1250</guid>
		<description>Wouldn&#039;t it make more sense to have the mediator be responsible for dynamically naming themselves?  The mediators are inherently bound to the views via there instantiation and would be intelligent enough to offer up, or act on there own, unique name.</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it make more sense to have the mediator be responsible for dynamically naming themselves?  The mediators are inherently bound to the views via there instantiation and would be intelligent enough to offer up, or act on there own, unique name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lauren</title>
		<link>http://9mmedia.com/blog/?p=9&#038;cpage=1#comment-959</link>
		<dc:creator>lauren</dc:creator>
		<pubDate>Thu, 10 Jan 2008 19:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://9mmedia.com/blog/?p=9#comment-959</guid>
		<description>Cliff
You are right, the proxies and mediators dont HAVE to be single instances.  However, it seems as though you were assuming most developers would use them that way.  Especially with retrieving mediators by name, the static name makes them easily accessible.  

The example in the HelloFlash demo is similar to how we set up our system, using the view to dynamically name the mediators.  We found that there wasn&#039;t too much documentation about a system like that so far, as most of the examples stick to the single instances with static names.  Aside from one or two posts in the forum, we decided to bring the issue out a little and discuss.  To showcase our way of doing it and give others some ideas on how to go about finding a solution to their own needs.</description>
		<content:encoded><![CDATA[<p>Cliff<br />
You are right, the proxies and mediators dont HAVE to be single instances.  However, it seems as though you were assuming most developers would use them that way.  Especially with retrieving mediators by name, the static name makes them easily accessible.  </p>
<p>The example in the HelloFlash demo is similar to how we set up our system, using the view to dynamically name the mediators.  We found that there wasn&#8217;t too much documentation about a system like that so far, as most of the examples stick to the single instances with static names.  Aside from one or two posts in the forum, we decided to bring the issue out a little and discuss.  To showcase our way of doing it and give others some ideas on how to go about finding a solution to their own needs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cliff Hall</title>
		<link>http://9mmedia.com/blog/?p=9&#038;cpage=1#comment-958</link>
		<dc:creator>Cliff Hall</dc:creator>
		<pubDate>Thu, 10 Jan 2008 17:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://9mmedia.com/blog/?p=9#comment-958</guid>
		<description>&gt;&gt;The biggest downfall so far is the fact that the mediators and proxies are expected to be singletons.

This is not correct. Proxies and Mediators are not singletons. The only singletons in the system are Facade, Model, View and Controller. 

You may have only looked at one or two demos and found that OFTEN, there is only one instance of a given Mediator or Proxy in the in the system, but this is not always the case.

For instance, to see a Mediator that is instantiated multiple times at runtime, check out the HelloFlash demo, in which you grab a colored square on the screen and drag it, causing it to emit further colored squares.

The colored square is a HelloSprite, and each one has an associated HelloSpriteMediator. When you use the scrollwheel to resize all the sprites, what is happening is that a notification is being broadcast that all instances of HelloSpriteMediator hear and in turn resize their associated HelloSprite. 

Note that each HelloSpriteMediator is given a unique name. 

Whether a given Mediator or Proxy is instantiated more than once depends entirely upon what it is you&#039;re trying to do.

-=Cliff&gt;</description>
		<content:encoded><![CDATA[<p>&gt;&gt;The biggest downfall so far is the fact that the mediators and proxies are expected to be singletons.</p>
<p>This is not correct. Proxies and Mediators are not singletons. The only singletons in the system are Facade, Model, View and Controller. </p>
<p>You may have only looked at one or two demos and found that OFTEN, there is only one instance of a given Mediator or Proxy in the in the system, but this is not always the case.</p>
<p>For instance, to see a Mediator that is instantiated multiple times at runtime, check out the HelloFlash demo, in which you grab a colored square on the screen and drag it, causing it to emit further colored squares.</p>
<p>The colored square is a HelloSprite, and each one has an associated HelloSpriteMediator. When you use the scrollwheel to resize all the sprites, what is happening is that a notification is being broadcast that all instances of HelloSpriteMediator hear and in turn resize their associated HelloSprite. </p>
<p>Note that each HelloSpriteMediator is given a unique name. </p>
<p>Whether a given Mediator or Proxy is instantiated more than once depends entirely upon what it is you&#8217;re trying to do.</p>
<p>-=Cliff&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
