Re: [flexcoders] Cairngorm and MVC: Quickie

2006-08-23 Thread Tom Chiverton
On Wednesday 23 August 2006 02:03, Darren Houle wrote:
 Very true.  Alternatively you could create these three data structure
 within the one ModelLocator and refer to them like...
 model.biz.userRole = ...
 model.core.adminViewStackState = ...
 model.icon.deleteButton = ...

I would tend to go this way.

-- 
Tom Chiverton
Helping to vitalistically aggregate bricks-and-clicks materials



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Cairngorm and MVC: Quickie

2006-08-22 Thread Darren Houle
Start off with one model for your app and as your application grows, you 
will probably see the need to refactor. At that time, create a second model 
and so on and so forth. Just to give u a quick idea, I have 3 models in my 
current project:
BizModel - hold main data that actually goes back and forth to the server
CoreModel - holds static data bound to comboboxes and app state data
IconModel - holds reference to several icons used throughout the app


Very true.  Alternatively you could create these three data structure within 
the one ModelLocator and refer to them like...

model.biz.userRole = ...
model.core.adminViewStackState = ...
model.icon.deleteButton = ...

Darren











From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
Behalf Of lostinrecursion
Sent: Monday, August 21, 2006 6:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm and MVC: Quickie



Hi all. Just wondering if I have figured this out correctly.

In an MVC/Cairngorm application, it is ok to have as many models as I
determine based on my data needs.

Then, I would have one ModelLocator class (which extends the core
Cairngorm one) mapping to each model and instantiating variables for them.

Then I reference the model locator in the views to which it is relavent.

But all apps only possess one Controller. Is that right?

So, simply, 1 Controller/1 Model Locator/1:N Models/1:N Views





--
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use 
of the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If 
you are not the intended recipient of this message, or if you have received 
it in error, you should immediately stop reading this message and delete it 
and all attachments from your system.  The reading, distribution, copying 
or other use of this message or its attachments by unintended recipients is 
unauthorized and may be unlawful.  If you have received this e-mail in 
error, please notify the sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés 
au seul usage du destinataire visé.  L'expéditeur original ne renonce à 
aucun privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous 
n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu 
par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi 
que toutes ses pièces jointes, de votre système.  La lecture, la 
distribution, la copie ou tout autre usage du présent message ou de ses 
pièces jointes par des personnes autres que le destinataire visé ne sont 
pas autorisés et pourraient être illégaux.  Si vous avez reçu ce courrier 
électronique par erreur, veuillez en aviser l'expéditeur.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Cairngorm and MVC: Quickie

2006-08-21 Thread Bjorn Schultheiss





Yes, although i have heard of succesful implementations 
that use more than 1 controller and locator.
I think that, that is the idea until it doesn't satisfy 
your requirements anymore

Regards,

Bjorn Schultheiss
Senior Flash Developer
QDC Technologies



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
lostinrecursionSent: Tuesday, 22 August 2006 8:33 
AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
Cairngorm and MVC: Quickie


Hi all. Just wondering if I have figured this out correctly.In an 
MVC/Cairngorm application, it is ok to have as many models as Idetermine 
based on my data needs.Then, I would have one ModelLocator class (which 
extends the coreCairngorm one) mapping to each model and instantiating 
variables for them.Then I reference the model locator in the views to 
which it is relavent.But all apps only possess one Controller. Is that 
right?So, simply, 1 Controller/1 Model Locator/1:N Models/1:N 
Views
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Cairngorm and MVC: Quickie

2006-08-21 Thread Darren Houle
Yup, you got it.  To be even more specific...

1:N Views
   A) bind to data in the
1 ModelLocator (which contains 0:N Models/VO's)
   and B) broadcast
1:N Events
   to the
1 FrontController
   which maps Events to
1:N Commands
   which may create
0:N Delegates
   which trigger
0:N Services (using 1 ServiceLocator, if you have Services)
   the results are then passed from the Services back to the Delegates, 
which pass them back to the Commands, which then update the data 
(models/VO's) stored in the Model Locator.

Darren




From: lostinrecursion [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm and MVC: Quickie
Date: Mon, 21 Aug 2006 22:32:30 -

Hi all. Just wondering if I have figured this out correctly.

In an MVC/Cairngorm application, it is ok to have as many models as I
determine based on my data needs.

Then, I would have one ModelLocator class (which extends the core
Cairngorm one) mapping to each model and instantiating variables for them.

Then I reference the model locator in the views to which it is relavent.

But all apps only possess one Controller. Is that right?

So, simply, 1 Controller/1 Model Locator/1:N Models/1:N Views




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Cairngorm and MVC: Quickie

2006-08-21 Thread Dimitrios Gianninas





Start off with one model for your app and as your 
application grows, you will probably see the need to refactor. At that time, 
create a second model and so on and so forth. Just to give u a quick idea, I 
have 3 models in my current project:

BizModel - hold main data that actually goes back and forth 
to the server
CoreModel - holds static data bound to comboboxes and app 
state data
IconModel - holds reference to several icons used 
throughout the app

Dimitrios 
Gianninas
RIADeveloper
Optimal 
Payments Inc.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
lostinrecursionSent: Monday, August 21, 2006 6:33 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
Cairngorm and MVC: Quickie


Hi all. Just wondering if I have figured this out correctly.In an 
MVC/Cairngorm application, it is ok to have as many models as Idetermine 
based on my data needs.Then, I would have one ModelLocator class (which 
extends the coreCairngorm one) mapping to each model and instantiating 
variables for them.Then I reference the model locator in the views to 
which it is relavent.But all apps only possess one Controller. Is that 
right?So, simply, 1 Controller/1 Model Locator/1:N Models/1:N 
Views
 
  
  AVIS
  IMPORTANT
  
  
  WARNING
  
 
 
  
  Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système.  La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
  
  
  This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient.  No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message.  If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system.  The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful.  If you have received this e-mail in error, please notify the sender.
  
 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___