can I display Mac applications remotely using X?

Barry Margolin barmar at kulla
Sat Oct 21 07:47:03 AEST 1989


In article <1989Oct20.183825.6061 at csmil.umich.edu> holtz at zurich.csmil.umich.edu (Brian Holtz) writes:
>I've heard that there's an X server that runs under Mac OS; would this
>be a way to have regular Mac applications display remotely on other
>workstations?  Is there _any_ way to do such a thing?

No.  An X server allows applications on other machines to display in
windows on the server machine.

In order to allow ordinary Mac applications to display remotely, the
low-level managers and toolboxes that access the screen directly would have
to be reimplemented using X operations.  This is a large, difficult
conversion, often requiring some redesign of the display manager because of
changes in underlying assumptions.  Symbolics spent a couple of years doing
this to their Lisp Machine window system so that it would work in the
MacIvory and UX400S co-processor environments.  Console drivers written for
hardwired displays generally assume that they can access the console
atomically, and that reading/writing bitmaps from/to the display is a cheap
operation, and applications often make similar assumptions.  This is not
the case when the display is at the other end of a network connection.
Routines that normally run at interrupt level now must make calls to
network stream interfaces, and handle all the myriad exceptional cases that
may be involved.

Consider the way screen fonts are handled.  The Mac keeps lots of bitmaps
around, and simply copies them to the screen; in System 7.0 it will keep
outlines around, compute bitmaps as needed, and copy them to the screen.
In X, however, the performant way to display characters is to send
character data to the server, allowing it to look up bitmaps from its own
fonts.  This means that the available fonts depend on the server you're
using; you may get strange results if you write a file directly on a Mac,
and then look at it again while using an X server on a Sun.  Symbolics's
decision was to make both styles of text output available, at the choice of
the application that creates a window.  They also provide a way to convert
Symbolics font files into X font files.
Barry Margolin, Thinking Machines Corp.

barmar at think.com
{uunet,harvard}!think!barmar



More information about the Comp.unix.aux mailing list