Hi Silas,

some add'tl info.

> On Friday February 11 2011 22:30:16 Silas Parker wrote:
> > Hello, I've just tried using qooxdoo 1.3 with Adobe Air 2.5 and I am
> > encountering a problem.
> > 
> > The Adobe Air sandbox places some restrictions on the JavaScript, in
> > particular Function constructors are not allowed after handling page
> > load, the Air manual states:
> > 
> > Calls to new Function(param, body) can be replaced with an inline
> > function declaration or used only before the page load event has been
> > handled.
> > 
> > This is triggered by the line:
> > members[store] =  new Function("value", code.join(""));
> > in:
> > qx.core.Property.__unwrapFunctionFromCode
> > file: framework/source/class/qx/core/Property.js, lines: 682 or 689
> > 
> > I have only recently started learning qooxdoo, and so don't know the
> > code particually well, is there anything I can do to change these
> > lines to not use the Function constructor, or cause them to be run
> > before the page load handler?
> We are aware of these restrictions by the Adobe AIR sandbox, however qooxdoo 
> is currently not supporting the AIR platform.  There are (yet) no plans for 
> future support of the AIR platform.


While there is no support to automatically package a qooxdoo application
as an AIR app (it used to be an early experimental feature), you can
still, of course, create qooxdoo-based AIR apps manually.

Due to changes of the AIR security model (a long time ago) you'd have to
run your qooxdoo app in the "non-application sandbox" (i.e. within an
iframe). In that setup the runtime evaluation of JS code like you
noticed still works. Unlike the "privileged application sandbox" you'd
have to setup a so-called "bridge" so that you could still call certain
AIR APIs from your qooxdoo code. That is well documented in the AIR
docs, but you'll need to be careful about security implications, being
as restrictive as possible.

Other than the Adobe AIR platform, which IMHO didn't live up to the
expectations, I would suggest to look into a similar, but more powerful,
open-source solution: Titanium Desktop:
http://www.appcelerator.com/products/titanium-desktop-application-development/

HTH,

Andreas

-- 
Andreas Ecker
Project Lead
http://qooxdoo.org



------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to