资 源 简 介
Mozilla JavaScript-Cocoa Bridge for Mac OS X
Lightweight bridge for calling Cocoa frameworks from Mozilla JavaScript, js-macosx transparently handles definition of Cocoa API, both C and Objective-C, and provides automatic declarations for framework functions, structures, constants and enumerations, as well as allows creating and subclassing Cocoa classes.
The js-macosx bridge has dependency on js-ctypes and BridgeSupport. Whenever a Cocoa class, function, struct or const is encountered in the JavaScript code, js-macosx will replace it with the corresponding js-ctypes declaration based on the BridgeSupport file from the framework that object belongs to.
Introduction
Using js-macosx, Step by Step
Importing System Frameworks
Importing Other Frameworks
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报