Paul,

 If you're trying to understand Cairngorm by reading the docs and
going through the Cairngorm Store demo, you'll notice that the views
are toggled via constants in the model:

eg.


if( model.workflowState ==
ShopModelLocator.VIEWING_PRODUCTS_IN_THUMBNAILS )

... 


so the various views or different features/sections that the user sees
in the store are: 

ShopModelLocator.VIEWING_PRODUCTS_IN_THUMBNAILS
ShopModelLocator.VIEWING_PRODUCTS_IN_GRID
ShopModelLocator.VIEWING_CHECKOUT 


So that would explain why both the original poster and myself, would
assume that for various features in your own app - such as a "My
Profile", "Inbox", "Contacts" for an email application for example -
would have to be handled by a viewstack and a list of constants. 

Do you think the Cairngorm Store app has been written with inherent
flaws? If so, then how would you rewrite it to illustrate the
behaviour you mentioned before? 

cheers,
Justin 

Reply via email to