caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: psnively@mac.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] O'Caml 3.07p2 + Tk 8.4.4 on Mac OS X 10.2.8
Date: Thu, 30 Oct 2003 08:57:10 +0900	[thread overview]
Message-ID: <20031030085710D.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <BB0CCEB8-0A3B-11D8-BBBB-000A27DEEC20@mac.com>

From: Paul Snively <psnively@mac.com>

> 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  
> <http://caml.inria.fr/archives/200211/msg00163.html>, specifically:

IIRC, you can shorten it a bit when the framework is in a standard
location:
    ./configure -tkdefs "-I/Library/Frameworks/Tcl.framework/Headers
         -I/Library/Frameworks/Tk.framework/Headers" -tk-no-x11
        -tklibs "-framework Tcl -framework Tk"

Not that this changes much :-)

However, my experience with the Aqua Tk is lots of strange behaviour,
so my suggestion would be to do yourself a favor, and install the X11
Tk, which works flawlessly. Not also that lablGL's Togl widget works
only with the X11 Tk  (as Togl does not support Aqua Tk to start with).

> 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  
> <http://www.erlang.org/ml-archive/erlang-questions/200210/ 
> msg00148.html>. Briefly, Tk's SetFrontProcess() call needs to be  
> prepended with a CPSSetProcessName() and CPSEnableForegroundOperation()  
> pair.

Interesting. I'll take a look at this, but your following comments
about strange behaviours with ocamlbrowser confirm that it's probably
not worth investing too much time in it.

By the way, isn't anybody working on a direct interface to Aqua, to be
able to write Aqua application ocaml?  This would be much nicer than a
half-baked Tk interface. Is GNUstep compatible enough to offer some
kind of portability?

Jacques Garrigue

-------------------
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


      reply	other threads:[~2003-10-29 23:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-29 18:14 Paul Snively
2003-10-29 23:57 ` Jacques Garrigue [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031030085710D.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=psnively@mac.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).