Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
OCaml && COCOA-Environment (Mac-OS-X/GUI)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mike Hamburg <hamburg@f...>
Subject: Re: [Caml-list] OCaml && COCOA-Environment (Mac-OS-X/GUI)
Additionally, I developed a very rudimentary binding.  It allowed the 
user to call Cocoa methods from O'Caml, but it had an enormous 
overhead: each method invocation from O'Caml had the overhead of about 
5 method calls from the C glue.  There was a (somewhat more efficient) 
Cocoa-to-O'Caml call method, but I don't remember if I ever finished 

Paul Snively, Nick Burlett and I were working on a more efficient 
bridge, by means of parsing Cocoa headers to automatically generate 
typed bindings which would look like objects to O'Caml, but the project 
fizzled without any real results.  Perhaps someone with more FrontC 
knowledge could resurrect it.  The existing code is not strongly typed: 
you can attempt to pass the wrong number or type of arguments to a 
method, and it will raise an O'Caml exception instead of rejecting it 
at compile time.

The O'Caml-to-Cocoa bridge is not online, but I can send you what code 
we have if you want.

Mike Hamburg

On Feb 5, 2005, at 11:37 AM, Julien Roussel wrote:

> Hello Oliver,
> There is a COCOA-CAML binding developed by Jean-Baptiste Poix, an
> alpha version is available at
> Sorry but the page is still in french, an english version and a
> documentation will be available soon. You can download an example at
> Please do not hesitate to contact Jean-Baptiste ( with
> any questions.
> Regards, Julien.
> On Sat, 5 Feb 2005 01:02:08 +0100, Oliver Bandel
> <> wrote:
>> Hello,
>> is there a COCOA-Binding/Lib for OCaml?
>> I want to do GUI-stuff for data-input by users
>> as well as 3D-graphics (OpenGL-like) on Mac-OS-X.
>> And I would be sooooo happy, it can be made with
>> OCaml.
>> Not that Objective-C or is a bad thing.... but
>> doing the whole stuff in OCaml is preferred.
>> Is there a library to use Ocaml with Mac-OS-X' GUIs?
>> TIA,
>>   Oliver
>> --
>>   "Der Kopf ist rund, damit das Denken die Richtung wechseln kann."
>>                                                      (Francis Picabia)
>> _______________________________________________
>> Caml-list mailing list. Subscription management:
>> Archives:
>> Beginner's list:
>> Bug reports:
> _______________________________________________
> Caml-list mailing list. Subscription management:
> Archives:
> Beginner's list:
> Bug reports: