Graphics Library for D

Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com> Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Tue Jan 7 00:18:41 PST 2014


On Tuesday, 7 January 2014 at 08:01:44 UTC, Jacob Carlborg wrote:
> Unfortunately you cannot. You need Objective-C just to bring up 
> a basic window. If you also want all the rest (application 
> menu, dock icon and so on) which is expect from every 
> application on Mac OS X it requires surprisingly a lot of code 
> just to get the basics up and running.

Yes, but you can call D as a library from an Objective-C runtime.

1. Objective-C main() calls D main().
2. D main creates OSApplication facade and calls run(someDfunc) 
on it.
3. Objective-C event loop call back to someDfunc


More information about the Digitalmars-d mailing list