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 UAA08371; Fri, 6 Feb 2004 20:30:01 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA12535 for ; Fri, 6 Feb 2004 20:30:00 +0100 (MET) Received: from xanadu.ece.ucsb.edu (xanadu.ece.ucsb.edu [128.111.56.51]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id i16JTxf04416 for ; Fri, 6 Feb 2004 20:29:59 +0100 (MET) Received: from [12.107.11.68] (cbshost-12-107-11-68.sbcox.net [12.107.11.68]) by xanadu.ece.ucsb.edu (8.12.10/8.12.10) with ESMTP id i16JTwl9019788 for ; Fri, 6 Feb 2004 11:29:58 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v612) In-Reply-To: <42856FC8-58D8-11D8-A224-003065BDAA76@ece.ucsb.edu> References: <42856FC8-58D8-11D8-A224-003065BDAA76@ece.ucsb.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Shivkumar Chandrasekaran Subject: Re: [Caml-list] Aqua ocamlbrowser on Mac OS X Date: Fri, 6 Feb 2004 11:29:51 -0800 To: caml-list@inria.fr X-Mailer: Apple Mail (2.612) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; shivkumar:01 shiv:01 caml-list:01 --shiv--:01 shivkumar:01 labltk:01 tcltk:01 otherlibs:01 labltk:01 passing:01 --shiv--:01 non-x:01 clunky:01 bug:01 faq:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I should add that I can still only get it to run from the Terminal via open -a Ocamlbrowser --shiv-- On Feb 6, 2004, at 11:11 AM, Shivkumar Chandrasekaran wrote: > Following Trevor's suggestions (see > http://caml.inria.fr/archives/200211/msg00163.html) I am now able to > get *my* labltk programs to run in native Mac OS X Aqua mode (using > TclTkAquaBI-8.4.5.0.dmg from > http://www.maths.mq.edu.au/~steffen/tcltk/TclTkAqua/). Thanks, > Trevor!! > > What follows is what I did to get ocamlbrowser to run as a native Aqua > app. First I followed Trevor's suggestions. That did not work if I > double-clicked on Ocamlbroswer.app. I then tried from the command line > > open -a Ocamlbrowser > > That at least let ocamlbrowser display its error message that the > options to the command line were at fault. All the Console showed in > the log was a dreaded "RegisterProcess failed (error -50)" message. > > So I edited the source file ..../otherlibs/labltk/browser/main.ml and > essentially commented out the command line argument parsing step. I > did "make" and moved the new binary into > OCamlbrowser.app/Contents/MacOS/ and everything works pretty nicely > now. The only problem I have noticed is that clicking in the scroll > bar does not work. You have to catch the scroll-button and move it > with the mouse. Everything else seems to work too. > > If somebody needs the modified source I can email it. I hope some > similar hack can make labltk work too. > > To make this complete we must find some way of passing the command > line options, but that is for somebody else to do. > > --shiv-- > > >> I managed to get labltk working in Mac OS 10 with the Aqua (non-X) >> version of Tk. It's a bit clunky but maybe someone who knows more >> about these things can clean it up. > > ------------------- > 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 ------------------- 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