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
begin 0644 docoa.zip M*VY`]0'U`753/6_",!"=DU_A$:PN'5%&U`$)I$H=4149YR N21SE'-06\=_K MCURT*CC;[-X'1!^^92Y+ <CXFI;XQ'Y`&L95$>/J(EK&-_8;XQ68DRX8W[GU M+HN0)[!9:+&*$R_&'7V!<<D!%TM[:4*5EPIM?J<PKVV5GGEKT86[\N**8IPO MB1--VUF]HT;;C,3W ;9Y+2J;.X+,;^, 51L/Z.,1P5CHEB:/C%[0=7I!ZJZF M^&1,.T3N5ZO5I^.*J4*CB,<.B(5BI_(8#R`)I+$D=FY]H*J:IZ2CPL<^Z /J M$LQ0<#B MULSEG?P8YF2!7OR VCN)`N8T.G,/?,'K"D5V!V'70.LWHT7ZB5"^"[0X.*4^ MZO$?C: EY*C^(/)!$$V_F,T.)`R9_#Q&A)<B_4N9;T2_Q9F2PZNEFMT;8;[: M6WI+_P%02P,$%``"`` `<[&",+5N$W0S` ``%`4```8`$`!M86EN+F156`P` M:BMN0&HK;D#U`?4!E9/?;]HP$,>?D[_B5HF0`$,\DS*IVL.&M/&P55,EAI"; M&.(LL9'MM)LF_O?ZS 02457J2^+<^7N_/A=1'Y2VH![++`V%_RB8*2Q[K/C9 M8FP^S:;N*50:AD):J)F0<58PO=ZL-\#TWB3P/PQ6#U^=^![%(\ J9LP6H\$" MXJXKP7S;/;>?\0HW<9*VVI^66>X2XG,!JX>E%/9LCR\A44%J^(-/5U;P7(B* MY1/3)O:2UO:=VT+E7[1J#B MW&DV/A[J^A;K='V+EU,/1Z321='%!UTD$\#EAQK+H)YHHT!8KIE5V)G?L636 M&5]A](%Z[&(HD5UY2]KIJ=HSN/($[E(IPNO=)7;E-3OO1E99A]\/6GT<WYW, M[_2^J;FTAH 219JL^U-QS*/DDK;-YLE>VY&O:6&^?X:(_P502P,$%``"`` ` M]0&%D,\*PC`,QL_M4^2X%=] -T70RQ#TL&NW1:S.=JZI*.*[NW1.1$1/S9\O M^7[-T=6A0=AIOR-=-IA)B1?"SD(R2^$FA;$$>9'WQ46O69,F3/*"XPWK0<6Q M"0RUV`?E^9G`V9E:*: UZ323XEV2%TMK?J[L)Z3PU(6*X*V[ZAPYNK;(<"(P M;/Q#Y8*E5V;+:: .2'XD4E!^%I J>HL/\^'`MR>C&6'W47R7#U!+`0(5`Q0` ?`,LK;D#K ` end
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