资 源 简 介
This project is a trans-compiler from (a subset of) Apple"s Objective-C (ObjC) into ECMAScript (JavaScript). It takes ObjC classes and trans-compiles them into ECMAScript code which can be executed in a web browser. Furthermore a basic library is provided that wraps a (very small) subset of the iOS" UIKit framework.
The current status of this project is proof-of-concept. It"s possible to trans-compile ObjC classes into ECMAScript but there"s no Ajax library. The code of the trans-compiler is not ready to be released yet but you can have a look at the Hello World example in the Downloads section. The Xcode version can be compiled in Xcode and run in the iPhone simulator (iPhone SDK 4 is required because we use blocks). The ECMAScript version can be run in a web browser (we"ve tested the generated code in Safari 5, Firefox 3.6 and Chrome 5 as well as in modern mobile browsers).
It"s sufficient to trans-compile the files in the directory CWTClasses. The trans-c