Hi, > is the data saved in the statics section be inserted > into all my classes, or is it only saved in one place and a reference to the > data is shared with all apps (as I assume it does)? As static data is not affected by inheritance or mixin includes, the data should be only in one place and thats the initial place where you put it.
> A more general question is - if I want to save some initial application data > which I load at the app startup, should I create a special singleton class > for it, or is simply saving the data in a statics section of a class enough? I would always try to avoid static accesses for some reasons: - You loose flexibility in converting the data on the fly in case something changes in your loaded date. - You don't have the chance to fire an event as soon as the data is loaded. > Will I have to save the data anyway in a statics section of the singleton? If you have a singleton, you can / should save the data in the members section as well. Regards, Martin ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
