<?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: Moccasin: a Flex framework for graphical editing apps</title>
	<atom:link href="http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/feed/" rel="self" type="application/rss+xml" />
	<link>http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Tue, 06 Jan 2009 11:52:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: joe</title>
		<link>http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-567</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Fri, 14 Nov 2008 13:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-567</guid>
		<description>To get this to work, you need to do a couple of things:

1. your Presentation object needs to have a "children" ArrayCollection property, each of which is a Slide.  (If you don't call the property "children", you need to supply a MOCCASIN_CHILDREN_PROPERTY with the name you used.)

2. override PresentationView's createChildView() method to create a SlideView() for a new Slide child model.

3. when you create your new Presentation, add a Slide to it.  This should cause the SlideView to be created.

Note that if you're trying to be like PowerPoint or Keynote, you might not actually want your presentation views to be in the MoccasinView along with the slides.  In that case you might want to make the SlideView the root model object of your MoccasinView and show the Presentation views somewhere else, like as items in an mx:List component.</description>
		<content:encoded><![CDATA[<p>To get this to work, you need to do a couple of things:</p>
<p>1. your Presentation object needs to have a &#8220;children&#8221; ArrayCollection property, each of which is a Slide.  (If you don&#8217;t call the property &#8220;children&#8221;, you need to supply a MOCCASIN_CHILDREN_PROPERTY with the name you used.)</p>
<p>2. override PresentationView&#8217;s createChildView() method to create a SlideView() for a new Slide child model.</p>
<p>3. when you create your new Presentation, add a Slide to it.  This should cause the SlideView to be created.</p>
<p>Note that if you&#8217;re trying to be like PowerPoint or Keynote, you might not actually want your presentation views to be in the MoccasinView along with the slides.  In that case you might want to make the SlideView the root model object of your MoccasinView and show the Presentation views somewhere else, like as items in an mx:List component.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Morgan</title>
		<link>http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-447</link>
		<dc:creator>Rob Morgan</dc:creator>
		<pubDate>Fri, 14 Nov 2008 05:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-447</guid>
		<description>Hey Joe,

I'm really impressed with your framework. I've managed to figure out quite a bit. One thing I'm working on at the moment is a graphical presentation editor. I can't seem to figure out how to make an app that goes one model deeper i.e.

-&#62; Moccasin -&#62; Presentation -&#62; Slide. I can get the editor functionality working on the PresentationView but I'd ultimately like to extend it to the SlideView. Problem is when I create a new Presentation Model it needs to automatically create a new slide model and attach it.

Hopefully all of that makes sense? Essentially all I want to do is take your simpleworld example and add another layer. e.g.

Moccasin -&#62; Universe -&#62; World -&#62; Square

Cheers,

Rob</description>
		<content:encoded><![CDATA[<p>Hey Joe,</p>
<p>I&#8217;m really impressed with your framework. I&#8217;ve managed to figure out quite a bit. One thing I&#8217;m working on at the moment is a graphical presentation editor. I can&#8217;t seem to figure out how to make an app that goes one model deeper i.e.</p>
<p>-&gt; Moccasin -&gt; Presentation -&gt; Slide. I can get the editor functionality working on the PresentationView but I&#8217;d ultimately like to extend it to the SlideView. Problem is when I create a new Presentation Model it needs to automatically create a new slide model and attach it.</p>
<p>Hopefully all of that makes sense? Essentially all I want to do is take your simpleworld example and add another layer. e.g.</p>
<p>Moccasin -&gt; Universe -&gt; World -&gt; Square</p>
<p>Cheers,</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-269</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Mon, 13 Oct 2008 21:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-269</guid>
		<description>Danny, it's great that you bring this up -- Marc Hughes and I were talking about how OH and Moccasin could fit together a month ago, when he did a presentation on his stuff at the Boston Flex User Group.  I love what he's done with OH but at the end of the day I think it is hard to fit the models together, so I have gone in the direction of adding OH-like functionality to Moccasin.  In fact, if you look in Moccasin's view package you will find &lt;a href="http://code.google.com/p/moccasin/source/browse/trunk/moccasin-core/src/com/joeberkovitz/moccasin/view/SelectionHandle.as" rel="nofollow"&gt;SelectionHandle&lt;/a&gt; which is a basic selection-handle class.  The SimpleWorld example uses SelectionHandle so you can see how to use a DragMediator to make SelectionHandle do something useful.  I've also added rotation handles and edge/corner handles to an app I built on top of Moccasin, but unfortunately that code isn't open source so I need to redo it.

What I would really like to do (and what Marc has done a wonderful job of) is have a cool hookup between Moccasin and Degrafa.  There's probably a good way to do that without disrupting anything but I haven't had time to check it out.</description>
		<content:encoded><![CDATA[<p>Danny, it&#8217;s great that you bring this up &#8212; Marc Hughes and I were talking about how OH and Moccasin could fit together a month ago, when he did a presentation on his stuff at the Boston Flex User Group.  I love what he&#8217;s done with OH but at the end of the day I think it is hard to fit the models together, so I have gone in the direction of adding OH-like functionality to Moccasin.  In fact, if you look in Moccasin&#8217;s view package you will find <a href="http://code.google.com/p/moccasin/source/browse/trunk/moccasin-core/src/com/joeberkovitz/moccasin/view/SelectionHandle.as" rel="nofollow">SelectionHandle</a> which is a basic selection-handle class.  The SimpleWorld example uses SelectionHandle so you can see how to use a DragMediator to make SelectionHandle do something useful.  I&#8217;ve also added rotation handles and edge/corner handles to an app I built on top of Moccasin, but unfortunately that code isn&#8217;t open source so I need to redo it.</p>
<p>What I would really like to do (and what Marc has done a wonderful job of) is have a cool hookup between Moccasin and Degrafa.  There&#8217;s probably a good way to do that without disrupting anything but I haven&#8217;t had time to check it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-267</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Mon, 13 Oct 2008 17:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-267</guid>
		<description>Joe,

Very nicely done and useful framework.  A question for you - I've been working on a graphical editing app and was using ObjectHandles framework to enable handles on objects and subsequnt dragging, sizing, rotation.  The OH framework goes a little further on manipulation of object properties but it utilizes a wrapper type approach, much like Moccasin. I'm not sure if you looked at OH but do you have any suggestions on an approach to use both frameworks to complement each other?  As it is, OH wants to be the outermost object wrapper so the graphical handles can match the extents of the underlying shape (usually a flex container holding whatever) but I don't know how I can wrap a moccasin model, or for example a collection of objects selected by a drag selection and wrap with OH to allow the property mods.  Is this viable or would you suggest extending moccasin to allow rotation handles and rotation mouse event handling and further extend it to allow those functions for multiple selected graphical objects?

thanks for any suggestions on this,
Danny</description>
		<content:encoded><![CDATA[<p>Joe,</p>
<p>Very nicely done and useful framework.  A question for you - I&#8217;ve been working on a graphical editing app and was using ObjectHandles framework to enable handles on objects and subsequnt dragging, sizing, rotation.  The OH framework goes a little further on manipulation of object properties but it utilizes a wrapper type approach, much like Moccasin. I&#8217;m not sure if you looked at OH but do you have any suggestions on an approach to use both frameworks to complement each other?  As it is, OH wants to be the outermost object wrapper so the graphical handles can match the extents of the underlying shape (usually a flex container holding whatever) but I don&#8217;t know how I can wrap a moccasin model, or for example a collection of objects selected by a drag selection and wrap with OH to allow the property mods.  Is this viable or would you suggest extending moccasin to allow rotation handles and rotation mouse event handling and further extend it to allow those functions for multiple selected graphical objects?</p>
<p>thanks for any suggestions on this,<br />
Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex Monkey Patches &#187; Blog Archive &#187; Rubbernecker’s Review - Week 15</title>
		<link>http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-264</link>
		<dc:creator>Flex Monkey Patches &#187; Blog Archive &#187; Rubbernecker’s Review - Week 15</dc:creator>
		<pubDate>Tue, 07 Oct 2008 14:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-264</guid>
		<description>[...] Moccasin: a Flex framework for graphical editing apps (from joeberkovitz.com) [...]</description>
		<content:encoded><![CDATA[<p>[...] Moccasin: a Flex framework for graphical editing apps (from joeberkovitz.com) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Lu</title>
		<link>http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-268</link>
		<dc:creator>Jeremy Lu</dc:creator>
		<pubDate>Mon, 06 Oct 2008 23:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-268</guid>
		<description>hey Joe,

You probably won't believe this, but I started working on something similar like a couple weeks ago, basically trying to figure out a framework suitable for graphical editing, with MDI, document management, undo/redo, and of course, the editor itself.

I'm having a look at the source right now, just want to say a big "thank you" for sharing this :)

Jeremy.</description>
		<content:encoded><![CDATA[<p>hey Joe,</p>
<p>You probably won&#8217;t believe this, but I started working on something similar like a couple weeks ago, basically trying to figure out a framework suitable for graphical editing, with MDI, document management, undo/redo, and of course, the editor itself.</p>
<p>I&#8217;m having a look at the source right now, just want to say a big &#8220;thank you&#8221; for sharing this :)</p>
<p>Jeremy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian McDonald</title>
		<link>http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-266</link>
		<dc:creator>Ian McDonald</dc:creator>
		<pubDate>Thu, 02 Oct 2008 16:39:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-266</guid>
		<description>Hey Joe,

This is great - just diving into the source now, to see if it might integrate with a framework of my own, but I'm very excited about the possibilities.

Thanks!

Ian</description>
		<content:encoded><![CDATA[<p>Hey Joe,</p>
<p>This is great - just diving into the source now, to see if it might integrate with a framework of my own, but I&#8217;m very excited about the possibilities.</p>
<p>Thanks!</p>
<p>Ian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh McDonald</title>
		<link>http://joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-265</link>
		<dc:creator>Josh McDonald</dc:creator>
		<pubDate>Wed, 01 Oct 2008 03:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeberkovitz.com/blog/2008/09/30/moccasin-intro/#comment-265</guid>
		<description>That's really interesting and I didn't know about the project until now. I'm looking forward to seeing more about Moccasin, as it might be a good basis for (the graphing part of) an app I'm just starting. Cheers!</description>
		<content:encoded><![CDATA[<p>That&#8217;s really interesting and I didn&#8217;t know about the project until now. I&#8217;m looking forward to seeing more about Moccasin, as it might be a good basis for (the graphing part of) an app I&#8217;m just starting. Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
