The D/Objective-C Bridge
Note: This project been superseded by a language extension project, see D/Objective-C.
- D/Objective-C 0.2 (82 Kb)
- Second release of the D/Objective-C bridge Xcode project. January 10, 2008.
You can track the development of this project using the Git repository mirror accessible from git.michelf.ca.
The D/Objective-C bridge allows D programs to use transparently Objective-C classes and the Cocoa framework of Mac OS X. Objective-C objects can be manipulated by D code as if they were D objects, D objects are seen on the Objective-C side as genuine Objective-C objects; this is the essence of the bridge.
The D/Objective-C bridge currently includes wrappers for a limited number of Cocoa classes and is in a very early state. It is not much documented either, although if you want to learn more about it, I suggest you read the introduction I wrote on my weblog, or you can simply read the code.
How to Use
There is a mailing list to discuss the D/Objective-C bridge. All topics having something to do with the bridge may be posted there. This includes questions, comments, suggestions, and anything interesting you can think of. Everyone is welcome to join.
It is my hope that the discussions on this list will help improve the bridge for the future so that perhaps one day it’ll become usable for real-world applications.
Now compiles and work correctly on Macs with Intel processors.
Reduced the number of functions involved in the the function/method call bridge to reduce the noise when looking at the call stack from the debugger.
Dramatically reduced the size of the templates that need to be instanciated at import time. As a result, compiling a module that include the Cocoa class wrappers (including compiling the wrapper themselves) is much faster now.
Added wrappers for many classes from the Cocoa framework (many of them are still incomplete or subject to change).
- Initial release
The D/Objective-C bridge is available under the terms of the GNU GPL, version 3.0.