D-Cocoa Port

Rizo Isrof rizo at odis-project.org
Fri Apr 13 06:34:24 PDT 2012


Hi,

I am planning to use D for creating native applications on Mac OS 
X. For that, of course, D must interact with the Cocoa API. I 
have no knowledge of how this bindings could be done. I've 
already looked at Cocado[1] and do know the Michel Fortin's 
D-ObjC bridge[2], and would like to be enlightened about some 
details:
  * What is their (or any other possible) approach of porting 
Cocoa to D? -- here I essentially ask for technical reading 
sources (books/articles/references, etc);
  * Is it possible to establish an ABI compatibility with ObjC 
directly or through the C ABI? -- There's a question on 
_stackoverflow_[3] where the answers describe what could be 
achieved with Objective-C's Runtime Reference[4];
  * Is it feasible to make this kind of stuff work nicely and get 
the level of performance and stability like, e.g., with Qt 
framework on Mac OS X?

I have no experience at all in this field so forgive me any 
technical faults. Any help would be appreciable.

Thanks in advance for your responses.

[1]: http://sourceforge.net/projects/cocodao/
[2]: http://michelf.com/projects/d-objc/
[3]: 
http://stackoverflow.com/questions/5901508/calling-cocoa-apis-from-c
[4]: 
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html

  - Rizo


More information about the Digitalmars-d-learn mailing list