[plt-scheme] Re: [plt-dev] 64-Bit PLT Scheme for Windows/Mac

From: Jakub Piotr Cłapa (jpc-ml at zenburn.net)
Date: Wed Oct 7 04:28:49 EDT 2009

On 09-10-07 00:40, Andrew Reilly wrote:
> [OT: I've been wondering how to deal with the change myself.  I
> haven't met a description of how to call out to objective-C
> methods from C, yet, only the other way around.  Anyone know of
> a how-to or tutorial?  Or is the only approach to make a cocoa
> application that calls back to the C "main" code somehow
> (inverting the call graph).]

You haven't seen any of these because it is not a problem. Code compiled 
with an Objective-C compiler can define normal C procedures which use 
Objective-C features but have normal linkage. Objective-C (contrary to 
C++) is just some syntax sugar + runtime more than plain C.

Alternatively you can use the Objective-C runtime manually and send any 
messages to any object you want. This is how the (quite new) PLT Scheme 
Objective-C FFI works.

Jakub Piotr Cłapa

Posted on the users mailing list.