Re: Process ID of Xserver
Re: Process ID of Xserver
- Subject: Re: Process ID of Xserver
- From: robert delius royar <email@hidden>
- Date: Fri, 1 Oct 2004 14:58:56 -0400 (EDT)
- Organization: An Apple OS X end user
- Priority: NEW
Fri, 1 Oct 2004 (11:31 -0700 UTC) Torrey T. Lyons wrote:
With the PID, I can get the server app's serial number which I can then
use to talk to some of the event manager routines.
The AppleWM extension sets some properties on the root window, but this is
not one of them. What are you planning to do with the Event Manager routines?
This is perhaps an area where a new feature would be useful.
My first goal is to make some of the tools I use that are old and clunky
command-line standbys easier to launch and use from the desktop. For
example, I now have a Platypus-mediated applications bundle for Pine which
can sit in the dock and launch as though it were a GUI application. I have
gnuclient in an AppleScript application that lets me drop files on it for
XEmacs to edit using the gnuserve feature.
Basically, these are the techniques that the Gimp.app uses, I believe. It
is mostly for my own convenience, but I would like the approaches to be
generalizable so that I could give them to others.
One thing I have discovered using Xt and Carbon calls in the same routine is
that there are a number of name collisions in the headers--X headers having
the same names for typedefs as do the Carbon headers (or headers pulled in
with Carbon). That would make a standard interface between X and the Apple
Carbon/Cocoa/Core really useful so that for example, you could simply issue
one command to manipulate focus for a client window and have that command do
the right thing for both the X concept of focus and Mac OS's concept. Focus
is my recent hobby-horse, but it's really only intended as an example.
Apple has an example of how to make calls to the Frameworks from X, and it
was helpull in putting together focusframe.c as was xwininfo.c, dsimple.c,
and fspanel.c.
--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden