Nitrox - an iPhone HTML/JS Application Environment
For all the divers in the house...what's better than AIR? NITROX!
See http://code.google.com/p/nitrox for more information.
How to Use Nitrox
To create a Nitrox application, you should create a new Cocoa Touch application in Xcode just as you would for a pure Objective-C application. Then you will follow the steps described in INSTALL.md to make Nitrox available to your main application.
You can extend Nitrox with your own Objective-C functions. You do not need to use Nitrox for your entire application. You can use it for only certain views or functions, and use pure Objective-C for others.
See http://code.google.com/p/nitrox/wiki/Performance for a comparison and performance analysis.
You can grab source code from Github at the following URL:
v0.2 - 2008-10-06
- Ajax-based invocation of functions (slower but more reliable and optionally synchronous)
- Location functions
- Vibrate function
- System functions including exiting and openURL
- UIDevice property access
- Simple (explicit, not automatic) proxying of GET requests for non-local URLs... could be used in some places where XMLHTTPRequest is used.
- General Notification subscription and sending
- Callbacks to JS for accel, location, orientation, notifications
- Faster but less general syscall method using UIWebView delegate interception rather than Ajax / HTTP
- Much faster and more general and more powerful method using WebKit native Obj-C bridge; not currently formally supported and probably App Store poison. (works, though)