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
it.
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
> http://labo.epimac.org/article.php3?id_article=7.
>
> Sorry but the page is still in french, an english version and a
> documentation will be available soon. You can download an example at
> http://labo.epimac.org/IMG/gz/first_cococaml.tar.gz.
>
> Please do not hesitate to contact Jean-Baptiste (tipoix@free.fr) with
> any questions.
>
> Regards, Julien.
>
>
> On Sat, 5 Feb 2005 01:02:08 +0100, Oliver Bandel
> <oliver@first.in-berlin.de> 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:
>> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
>> Archives: http://caml.inria.fr
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>> Bug reports: http://caml.inria.fr/bin/caml-bugs
>>
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>