2009 01 16JSCocoa on the iPhone
EDIT JSCocoa now works on the iPhone ! Get the latest version from Github. Post below now irrelevant.
Any ideas on that ?
mprotect
ing memory used for Javascript classes. That limits JSCocoa to standard scripting (creating and manipulating ObjC objects, calling C functions) but creating ObjC classes in Javascript would have to be done another way : eg create a dummy derived UIView
in ObjC, and add dummy methods calling their Javascript counterparts. This would be done once per class and then be transparent to the user. Implementation wise, this requires 'pre-derivation' of classes and looks quite strange :)Any ideas on that ?