My takes:

I generally have a dataTypes folder at the same level as the MVC folder for 
'transfer objects'
I'd probably have an events folder at the same level in your case, but I can't 
see much of an argument for custom events in a properly architected MVC 
application. Since every write to the model throws a CHANGE event, the Entire 
app is evented in nature. What is an example of a custom event you'd like to 
support in your MVC app? I want to test my theory.

As for Files, that screams controller to me.

In an app that does file system manipulation via the OS, I'd likely have a 
fileSystemController class in my controller tree. The built-in browse for files 
UI is not likely something I'd concern my view tree with, I'd probably just 
treat it the same way I treat a web service: the controller talks to it and 
passes any result my app needs to access into the model.
If I was making my own views to the file system, thats when I would involve the 
view tree.


Ross P. Sclafani
Owner / Creative Director
Neuromantic Industries
http://www.neuromantic.com

347.204.5714
http://ross.sclafani.net
http://www.twitter.com/rosssclafani

On Feb 27, 2012, at 4:19 PM, "Mattheis, Erik (MIN-WSW)" 
<ematth...@webershandwick.com> wrote:

> I've been putting all my class files in one of three folders, model, view, 
> controller. I'm mostly concerned with making the code as easy to understand 
> as possible.
> entire 
> Where would you expect transfer object class - a class that just defines a 
> set of values to pass as a group?
> 
> Where would you expect a custom event class?
> 
> Where would you put a class that reads from and writes to the file system? 
> Air.File has methods that produce UI elements. What are benefits/drawbacks to 
> writing the extra code to get File.browseForOpen() somewhere in the View?
> 
> What about a class that holds string values to display ion dialog boxes, on 
> buttons, etc? Is that part of the view or should it be defined in the model?
> 
> 
> 
> _ _ _
> Erik Mattheis | Weber Shandwick
> P: (952) 346.6610
> M: (612) 377.2272
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to