www.digitalmars.com         C & C++   DMDScript  

D.gnu - Docoa, Take 2

reply resistor mac.com writes:
I've succeeded in bridging some of the most critical Objective-C internals
(classes and objects), and am 
proud to say that I am now able to introspect the ObjC runtime from D.  I ported
O'Reilly "Inside the 
ObjC Runtime' introspector to D, and it works beautifully!
(http://www.macdevcenter.com/pub/a/mac/
2002/05/31/runtime_parttwo.html)

For those with OS X boxes, I'm attaching the source code.  Compiling is a little
tricky:

/usr/local/gdc/bin/gdc -c main.d objc.d hashtable.d
gcc -lSystem -framework Cocoa main.o objc.o hashtable.o
/usr/local/gdc/lib/libphobos.a /usr/local/
gdc/lib/gcc-lib/powerpc-apple-darwin7.3.0/3.3.3/libgcc.a
/a.out

Owen
Apr 02 2004
next sibling parent reply resistor mac.com writes:
Oops.  Forgot the attachment.

In article <c4ladm$bi7$1 digitaldaemon.com>, resistor mac.com says...
I've succeeded in bridging some of the most critical Objective-C internals
(classes and objects), and am 
proud to say that I am now able to introspect the ObjC runtime from D.  I ported
O'Reilly "Inside the 
ObjC Runtime' introspector to D, and it works beautifully!
(http://www.macdevcenter.com/pub/a/mac/
2002/05/31/runtime_parttwo.html)

For those with OS X boxes, I'm attaching the source code.  Compiling is a little
tricky:

/usr/local/gdc/bin/gdc -c main.d objc.d hashtable.d
gcc -lSystem -framework Cocoa main.o objc.o hashtable.o
/usr/local/gdc/lib/libphobos.a /usr/local/
gdc/lib/gcc-lib/powerpc-apple-darwin7.3.0/3.3.3/libgcc.a
/a.out

Owen

Apr 03 2004
parent bjoern <b.z. gmx.net> writes:
Hi,

I compiled your docoa-sources today, using the following commandline:

gdc -Wl,-framework,Cocoa main.d objc.d hashtable.d -o docoa

It works great... it produces 40000+ lines of output :)

- Bjoern
Apr 24 2004
prev sibling parent reply Sha Chancellor <schancel pacific.net> writes:
In article <c4ladm$bi7$1 digitaldaemon.com>, resistor mac.com wrote:

 /usr/local/gdc/bin/gdc -c main.d objc.d hashtable.d
 gcc -lSystem -framework Cocoa main.o objc.o hashtable.o
 /usr/local/gdc/lib/libphobos.a /usr/local/
 gdc/lib/gcc-lib/powerpc-apple-darwin7.3.0/3.3.3/libgcc.a
 /a.out

With these instructions i was able to compile a program that runs SysBeep OMFG!!! A couple more hours and i'll be able to write a whole application in D! j/k Thanks for the info. Gdc rocks. Can't wait for the latest release *ahem* I want to use start exposing Carbon to D and go grab those Core32 interfaces and GTK interfaces and maybe we could work on some kind of Cross-platform API standard for D. That'd be awesome.
Jul 26 2004
parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Sha Chancellor wrote:

 In article <c4ladm$bi7$1 digitaldaemon.com>, resistor mac.com wrote:
 
 
/usr/local/gdc/bin/gdc -c main.d objc.d hashtable.d
gcc -lSystem -framework Cocoa main.o objc.o hashtable.o
/usr/local/gdc/lib/libphobos.a /usr/local/
gdc/lib/gcc-lib/powerpc-apple-darwin7.3.0/3.3.3/libgcc.a
/a.out

With these instructions i was able to compile a program that runs SysBeep OMFG!!! A couple more hours and i'll be able to write a whole application in D! j/k Thanks for the info. Gdc rocks. Can't wait for the latest release *ahem* I want to use start exposing Carbon to D and go grab those Core32 interfaces and GTK interfaces and maybe we could work on some kind of Cross-platform API standard for D. That'd be awesome.

You could try DUI on your Mac; http://dui.sf.net Lars Ivar Igesund
Jul 26 2004
parent Ilya Minkov <minkov cs.tum.edu> writes:
Lars Ivar Igesund schrieb:
 You could try DUI on your Mac;
 
 http://dui.sf.net

It's very foreign. It runs in x-server. The GTK on MacOS X is even worse than on Windows. -eye
Jul 27 2004