Maybe I misspoke so, to clarify, my ItemRenderer knows nothing of my actual 
model.  I do use some static values from my model (checking against specific 
values - if I have one of these values, change the state of this particular 
item).
So after reading in my last post "all my data is bound to a model", I see the 
confusion.  I simply have a VO being created when the data property is 
set/updated.  Cairngorm has a "model" which is used for the entire application. 
 Then it uses VOs to represent individual "things" (I'm not sure what to call 
them.. :D).  However, going back in the history of Flex, a model (in standard 
Flex) and a VO (in Cairngorm) are the same thing.  So, when I was referring to 
a model in my ItemRenderer, it would have been better to use VO.  

Thanks for the help, hopefully I can get it figured out...
-Nathan


--- In [email protected], "Amy" <amyblankens...@...> wrote:
>
> --- In [email protected], "nathanpdaniel" <ndaniel@> wrote:
> >
> > Yes - I am using a custom ItemRenderer.  Also of note (as per amy's 
> > suggestion) while Q2 DOES represent what is happening, all my data is bound 
> > to a model (I believe).  So, I am overriding the set data method/property 
> > already, and upon setting the data property, I'm updating my model which is 
> > updating my view (using Cairngorm on this project so - I'm sort of forced 
> > to do things "proper").
> > Here's my itemRenderer code:
> 
> There is a lot of debate over whether Cairngorm is good practice at all, but 
> it sounds to me as if the way you're using it is _not_ proper.  ItemRenderers 
> shouldn't know anything about your model.  All they should do is display 
> and/or edit the data that is pushed into them, without knowing or caring how 
> that data fits into the larger picture.
> 
> HTH;
> 
> Amy
>


Reply via email to