> Hugh, your way is good but it seems that I've found the most correct > one (at least I beleive that it is so :)). I could use it in any file > and I think it matches the rules of the qooxdoo. You may be > interested in it too. > > Here it is: > > qx.core.Init.getInstance().getApplicationInstance() > > This returns the link to the current application running. Then I'm > using it just like in your example: > > var app = qx.core.Init.getInstance().getApplicationInstance(); > app.getMyViewer();
Ah, that sounds like the "qooxdoo" way. It's unfortunate that the automatic documentation system doesn't pick up the getInstance() function. However, I can't moan too much - having spent the last week in rewriting our app from a single monolithic unstructured file into a nice collection of classes in a logical namespace, I can really see the benefits of the "qooxdoo" way and no doubt will learn more about the right way as time goes on. qooxdoo book anyone? I suppose it's too much of a moving target at the moment, but it would be very useful. Hugh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
