From: Eric Dahlman
Subject: Allegro and Objective-C can they get along?
Date: 
Message-ID: <tz44r65zvwk.fsf@flatt.cs.colostate.edu>
Howdy,

I am running Allegro 6.2 under OSX at the moment I was wondering how
it interacts with Objective-C code.  In particular I was thinking of
using the ffi to try and make a connection to AquaTerm via
Objective-C's built in distributed objects mechanism.  Is such a thing
possible?

The documentation is fairly sparse but from what I can see Franz is
using some of the NS* classes so I assume that the objective-c runtime
is active behind the scenes.  (Or is it?) The only thing I found on
google was a reference Duane made to an older product on the NeXT
about a jillion years ago.

Has anybody tried this sort of thing in the past?

Thanks for any help!

-Eric
From: Pascal Bourguignon
Subject: Re: Allegro and Objective-C can they get along?
Date: 
Message-ID: <87vfylmujz.fsf@thalassa.informatimago.com>
Eric Dahlman <ยทยทยทยท@lossage.org> writes:

> Howdy,
> 
> I am running Allegro 6.2 under OSX at the moment I was wondering how
> it interacts with Objective-C code.  In particular I was thinking of
> using the ffi to try and make a connection to AquaTerm via
> Objective-C's built in distributed objects mechanism.  Is such a thing
> possible?

I've heard that OpenMCL has an Objective-C bridge, have a look at it.

Otherwise,  Objective-C  is  a  dynamic  layer over  C,  there  are  C
functions that  implement all the  mechanisms of Objective-C.   Have a
look at objc/objc.h  and other files in objc/,  and at NSObjCRuntime.h
and NSObject.h.   It should  not be  too difficult to  put a  FFI over
these functions  and program in Lisp  a layer allowing  easy access to
Objective-C.

The only bad thing is that  the Objective-C runtime is not the same in
Cocoa than  in GNUstep/gcc.   So you  can't use the  same FFI  both on
MacOSX and on GNUstep.


-- 
__Pascal_Bourguignon__                   http://www.informatimago.com/
----------------------------------------------------------------------
There is a fault in reality. Do not adjust your minds. -- Salman Rushdie