Hello,
I'm building a page layout-type app using cairngorm. I have an
arraycollection of value objects in the model that stores the data for each
item on the page.  Every item on the page is a custom component (a PageItem)
that is bound to one of the VOs as a dataprovider.  The VO contains the
entire state of the PageItem, x,y,rotation, content, etc).

each PageItem is draggable.  When I drag the PageItem to a new position, i
need to have the VO updated as well.  Currently I am just updating the vo
from within the component when the mouse is released, but since it's bound,
that triggers the property change event on the VO, which doesn't really do
anything but is pretty inefficient.

I feel like there's gotta be some way to just proxy the PageItem's values
like x and y to the VO directly and I'm just missing it.

In the past I have used Momentos to save and restore state, but I'm trying
to achieve a greater separation of the view and the model, so that when I go
to save the data, I just grab the collection of VO's from the model and save
that, rather than query the view for it's state.

Anyone have any pointers?

Reply via email to