Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MacOS X and Tk

1 view
Skip to first unread message

Bryan Oakley

unread,
Sep 10, 2001, 12:21:00 PM9/10/01
to
What's the current state of Tk on MacOS X? Is there a working version
anywhere, beta or otherwise? Is it actively being worked on? I can find
references to Tcl and MacOS X on the web, but details on Tk support are hard
to come by. And I don't presently have a mac to try things out...

It appears that an X (as in X windows) version of tk will run on top of
XFree86 -- is that correct? When that happens, does it require that XFree86
"take over" the desktop, or does XFree86 merely run in the background and
display the tk window as it were a regular MacOS window?

I guess TkGS might ultimately solve this problem if an official (or
otherwise) alternative doesn't crop up, but TkGS seems to be months away
from being truly usable in a production environment.

--
Bryan Oakley
oak...@bardo.clearlight.com


Stephen O. Lidie

unread,
Sep 10, 2001, 1:45:16 PM9/10/01
to
Bryan Oakley <boa...@austin.rr.com> wrote:
> What's the current state of Tk on MacOS X? Is there a working version
> anywhere, beta or otherwise? Is it actively being worked on? I can find
> references to Tcl and MacOS X on the web, but details on Tk support are hard
> to come by. And I don't presently have a mac to try things out...

I have compiled Tcl and Tk on Mac OS X. In fact, Tcl comes with the
standard developement CD. Tk works too, providing ...

> It appears that an X (as in X windows) version of tk will run on top of
> XFree86 -- is that correct? When that happens, does it require that XFree86

Yes, it's called XDarwin.

> "take over" the desktop, or does XFree86 merely run in the background and
> display the tk window as it were a regular MacOS window?

Either way - you get to choose.

> I guess TkGS might ultimately solve this problem if an official (or
> otherwise) alternative doesn't crop up, but TkGS seems to be months away
> from being truly usable in a production environment.

Check out;

http://www.Lehigh.EDU/~sol0/Macintosh/index.html

There are simplified instructions on how to get X11 running. Then goto:

http://www.mrcla.com/XonX/

And get XDarwin 1.0a1 and apply over the previous version - that provides
the rootless support. I just did that a few hours ago, so above page is
now out of date (will update tonight).

Steve
--
@_=map{eval"100${_}"}split/!/,'/5!*2!+$]!/10+$]';use Tk;$m=tkinit;$t='just an'.
'other perl hacker';$z='createText';$c=$m->Canvas(-wi,$_[1],-he,25)->grid;$c->$
z(@_[2,3],-te,$t,-fi,'gray50');$c->$z($_[2]-$],$_[3]-$],-te,$t);$m->bind('<En'.
'ter>',sub{$y=int(rand($m->screenheight));$m->geometry("+$y+$y")});MainLoop;

Steve Landers

unread,
Sep 10, 2001, 7:52:41 PM9/10/01
to
Stephen O. Lidie wrote:

> Bryan Oakley <boa...@austin.rr.com> wrote:
>> What's the current state of Tk on MacOS X?

...

> Check out;
>
> http://www.Lehigh.EDU/~sol0/Macintosh/index.html
>
> There are simplified instructions on how to get X11 running. Then goto:
>
> http://www.mrcla.com/XonX/
>
> And get XDarwin 1.0a1 and apply over the previous version - that provides
> the rootless support. I just did that a few hours ago, so above page is
> now out of date (will update tonight).

All good advice.

There's a series of articles on macwrite.com giving instructions on
configuring X on MacOS X. In particular, it talks about using X rootless
under Aqua using a window manager called Oroborus. This gives a uniform
look and feel between the Aqua applications and X applications.

---

Steve Landers Scripting Design Studio
Digital Smarties st...@digital-smarties.com
Perth, Western Australia www.digital-smarties.com

Bryan Oakley

unread,
Sep 10, 2001, 11:59:58 PM9/10/01
to
> There's a series of articles on macwrite.com giving instructions on
> configuring X on MacOS X. In particular, it talks about using X rootless
> under Aqua using a window manager called Oroborus. This gives a uniform
> look and feel between the Aqua applications and X applications.

Very interesting, and might be enough to get by until we have a fully
carbonized tk. The details of when or if that will happen are still a bit
sketchy, though.

Steve Landers

unread,
Sep 11, 2001, 1:28:41 AM9/11/01
to
Bryan Oakley wrote:

>> There's a series of articles on macwrite.com giving instructions on
>> configuring X on MacOS X. In particular, it talks about using X rootless
>> under Aqua using a window manager called Oroborus. This gives a uniform
>> look and feel between the Aqua applications and X applications.
>
> Very interesting, and might be enough to get by until we have a fully
> carbonized tk.

I've found it to be more than adequate - to the extent I split my
development between Linux/KDE on my workstation and MacOS X on an iBook.

I typically use several X applications both locally on the iBook and also
tunnelled from the workstation using ssh (over an wireless network). These
applications include exmh, gimp and knode (see
http://www.digital-smarties.com/pub/macosx.jpg for a screen snapshot).

Bryan Oakley

unread,
Sep 11, 2001, 11:32:21 AM9/11/01
to
"Steve Landers" <st...@digital-smarties.com> wrote in message
news:3b9da0e4$0$18...@motown.iinet.net.au...

> I've found it to be more than adequate - to the extent I split my
> development between Linux/KDE on my workstation and MacOS X on an iBook.

"adequate" unfortunately is pretty far away from "suitable for a commercial
product". I'm trying to access the viability of developing (well, porting) a
commercial application built with tk to Mac OS X. Apparently, it's not yet
something that is possible.

IMO, it's a bit much to expect a potential user to have to jump through the
necessary hoops to get X up and running in order to run a tk based
application.

Thanks for your input though!


0 new messages