zynga / jsbindings Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] JavaScript bindings for Objective-C and C
License: Other
[DEPRECATED] JavaScript bindings for Objective-C and C
License: Other
JSB_core_log
in src/manual/jsb_core.mm
has a memory leak. It calls JS_EncodeString
whose return value, according to the docs, should be JS_free
'd.
in jsbindings for cocos2d, the initializer name is initWithFileCapacity(file, capacity), instead of initWithFile(file, capacity), causing incompatibility with cocos2d-html5.
When there's an error compiling a script, all info I get is that it happened at the 'require' statement. In case of the typical cocos2d setup where files are included from an array, that doesn't even tell which file is causing the problem. It would be nice if we got some sort of error description from the compiler.
generate_jsb.py -c CocosDenshion_jsb.ini
Explicitly removing NSObject from bindings...
NOT OK: "SimpleAudioEngine#playBackgroundMusic:" Error: Explicitly ignoring method
NOT OK: "SimpleAudioEngine#playEffect:" Error: Explicitly ignoring method
NOT OK: "SimpleAudioEngine#soundSourceForFile:" Error: Unsupported argument: CDSoundSource*
I have some project that written in object-c,and I want to convert those to JS with JSB so that I can reuse them in cocos2d+JS.I have read the introductions and also followed, But I get troubles in the progress. I post the troubles as follows .Do i get something wrong or the JSB could't convert my own project. My mac os is 10.7.5.Looking for help.
I keep getting this error when Parsing the Parse SDK for iOS, this is my config file
[Parse]
plugin = constant_class = JSBGenerateConstants_Ignore,
js_namespace = parse
obj_class_prefix_to_remove = CD
classes_to_parse = *
classes_to_ignore = NS(.*)
class_properties = NSObject = manual,
NSEvent = manual
inherit_class_methods = Auto
import_files = jsb_NS_manual.h
function_prefix_to_remove = PF
functions_to_parse =
functions_to_ignore =
method_properties =
struct_properties =
bridge_support_file = Parse.bridgesupport
complement_file = Parse-complement.txt
During my master's thesis I created a general-purpose application for generating glue code, Bound. I started with binding code for bridging C++ and SpiderMonkey, all explained in the thesis (pdf!!). It is also based on Clang.
I didn't do anything on it the last months as I had to take a little break after the thesis. Also, it may be hacky at some points due to the limited time. Also, for simplicity of learning, I created a GUI application (though command-line was always planned).
I just thought it might be of interest to you, as you deal with the exact same topic. When I go back working on Bound, I will definitely take I a look at your project.
Good luck, with your project!!
Some Obj-C methods takes arguments of type id or NSObject, but in both cases this also may be such subclasses as NSArray, NSValue, NSDicationary, etc.
As i understand JSB_jsval_to_NSObject doesn't convert values to that types, and instead of it should be used JSB_jsval_to_unknown. But in all autogenerated methods is used JSB_jsval_to_NSObject.
Example of such method, where conversion to NSObject is insufficiently: [CCBAnimationManager setBaseValue:forNode:propertyName:] - it may take NSArrays, NSNumbers as first argument.
I was wondering if we can bind frameworks using this System.
I am trying to use the one, here:
https://www.parse.com/docs/downloads
I need help in knowing why this isn't working
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.