From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA01901; Wed, 29 Oct 2003 19:14:31 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA01128 for ; Wed, 29 Oct 2003 19:14:30 +0100 (MET) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.97]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9TIET111487 for ; Wed, 29 Oct 2003 19:14:29 +0100 (MET) Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h9TIESGc002069 for ; Wed, 29 Oct 2003 10:14:28 -0800 (PST) Received: from mac.com (dsl081-080-123.lax1.dsl.speakeasy.net [64.81.80.123]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 3.0) with ESMTP id h9TIERZq008589 for ; Wed, 29 Oct 2003 10:14:27 -0800 (PST) Date: Wed, 29 Oct 2003 10:14:26 -0800 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; delsp=yes; charset=US-ASCII; format=flowed Subject: [Caml-list] O'Caml 3.07p2 + Tk 8.4.4 on Mac OS X 10.2.8 From: Paul Snively To: caml-list@inria.fr Content-Transfer-Encoding: 7bit Message-Id: X-Pgp-Agent: GPGMail 1.0 (v30) X-Mailer: Apple Mail (2.552) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; 3.07:01 hash:01 -tkdefs:01 frameworks:01 frameworks:01 -tklibs:01 -framework:01 -framework:01 sudo:01 command-line:01 erlang:01 undocumented:01 api:01 scrollbar:01 scrollbar:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Folks, First, thanks for all the great, hard work on Objective Caml. It's a real joy to program in. I wish to be able to use the Aqua version of Tk, so of course, I had to compile the sources following the instructions at , specifically: "In the ocaml source directory do ./configure -tkdefs "-I/Library/Frameworks/Tcl.framework/Headers - -I/Library/Frameworks/Tk.framework/Headers" -tk-no-x11 -tklibs "-F/Library/Frameworks/Tcl.framework -framework Tcl - -F/Library/Frameworks/Tk.framework -framework Tk" make world make opt sudo make install make clean" And this worked flawlessly. However, I immediately ran into the: "you will get an error message SetFrontProcess failed,-606 when you try to use the calculator." Sure enough. Since I didn't feel it was realistic or even necessarily desirable to create a Mac OS X app bundle for every Tk-using command-line tool, I set about to see if there was another solution to the problem. It turns out that there is, and it is described quite nicely at . Briefly, Tk's SetFrontProcess() call needs to be prepended with a CPSSetProcessName() and CPSEnableForegroundOperation() pair. This change is controversial, which is probably why it's not in the current Tk builds: those calls are undocumented and in fact have been replaced with a public API in Mac OS X 10.3. However, this patch is still important for those running pre-10.3 Mac OS X. This gets me to the point where "ocamlbrowser" brings up the browser, and I can successfully bring it to the front and perform most operations. However, whenever I click either in the scrollbar arrows or in the page up/down portion of the scrollbar, I get: Uncaught exception: Invalid_argument("TKtoCAMLscrollValue"). Also, attempting to quit ocamlbrowser using either of the menus (the Application menu or the File menu) causes a hang of indefinite duration, requiring a "force quit" eventually. If any other O'Caml aficionados are also struggling to get O'Caml and Aqua Tk working together properly, I'd be most interested in joining forces. Hopefully it's clear that some good progress has been made, but there are just a few weird outstanding issues that it would be nice to resolve. Many thanks and best regards, Paul Snively -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iEYEARECAAYFAj+gA4IACgkQugPBK9DeteqZngCeJ12EsmY8WkHRcSxmJ9xhOzS0 NagAnRgmEbxrsBZJpHwskka3XcW7n1B4 =oj1D -----END PGP SIGNATURE----- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners