MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See for all notifications.

Your Search Results


    These examples demonstrate how to use js-ctypes.


    Using C struct and pointers
    An example on how to use basic C data types with js-ctypes.

    Mac OS X

    These examples require Mac OS X to operate.

    Add Image to iPhoto
    An extension that adds a contextual menu item to images that lets you easily add them to iPhoto on Mac OS X.

    An extension that demonstrates JavaScript-Cocoa Bridge for Mac OS X. Lightweight bridge for calling Cocoa frameworks from 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 BridgeSupport metadata: 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.


    Document Tags and Contributors

    Contributors to this page: Sheppy, arai, trevorh, ja.koder, vachooho
    Last updated by: arai,