On Mon, Jul 13, 2009 at 7:14 AM, Jens Axel Søgaardjensaxel@soegaard.net wrote:
Have you look at the code for the Objective C FFIs in PLT Scheme and Chicken Scheme? They use a general approach using the introspection facilities provided by the Objective C runtime. This reduces the pain of writing bindings considerably.
I haven't looked at those FFIs, but I have seen the C API for Obj-C reflection. It it too early for me to tell what the best solution will be for interfacing Obj-C APIs. I will only be programming full-screen OpenGL apps, so I don't need complete access to all of the views, nav bars, lists, etc. I don't plan on writing a full Obj-C to Scheme bridge, but maybe that will come eventually. For that, the reflection API does look good.
For now, I plan on writing a few basic FFIs which simply wrap C functions around Obj-C calls.