Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process ID of Xserver



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)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >Process ID of Xserver (From: robert delius royar <email@hidden>)
 >Re: Process ID of Xserver (From: Kevin Geiss <email@hidden>)
 >Re: Process ID of Xserver (From: "Torrey T. Lyons" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.