Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Window list

Window list
Thread Tools
Junior Member
Join Date: Feb 2002
Status: Offline
Reply With Quote
Feb 8, 2002, 03:33 AM
 
I've been scouring Apple's documentation, Google, and the frameworks on my system trying to find out how to get a list of all open windows on the system (like QuartzDebug does).

I've been trying to figure out what QuartzDebug does. It seems to call a mysterious function called CGSSetDebugOptions(), then read the list from the file /tmp/WindowServer.winfo.out. I assume that CGS means CoreGraphicsService. I found a brief mention of this on Apple's developer site. It just said that it's a private framework used for accessing the Window Server. Does anyone have any info on this/any other ideas?
self = [[JeffBinder alloc] init];
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 9, 2002, 04:51 AM
 
CGS is a private API that is part of the CoreGraphics framework for interfacing with the windowserver. Your best bet is disassembling that and figuring out what it does.
     
Junior Member
Join Date: Apr 2000
Location: San Francisco, CA
Status: Offline
Reply With Quote
Feb 9, 2002, 04:12 PM
 
Originally posted by Jeff Binder:
<STRONG>I've been scouring Apple's documentation, Google, and the frameworks on my system trying to find out how to get a list of all open windows on the system (like QuartzDebug does).

I've been trying to figure out what QuartzDebug does. It seems to call a mysterious function called CGSSetDebugOptions(), then read the list from the file /tmp/WindowServer.winfo.out. I assume that CGS means CoreGraphicsService. I found a brief mention of this on Apple's developer site. It just said that it's a private framework used for accessing the Window Server. Does anyone have any info on this/any other ideas?</STRONG>
You could spend days trying to disassemble things and trying to decode the interface, just to have it break in the next system update. Right now, the global window managment API is *private*.

Myself and a few other developpers have a request in with Apple to open up the global window list API so that 3rd party utilities can interface with it (much like the Dock does). Your best bet is submitting a feature request through bugreporter.appl.com and add to the ground swell of developpers requesting public & supported global window list API. They will tell you that your is a duplicate request - that's OK, what is important here is to show Apple the numbers of people who want this.

Michael Kamprath
--
Michael F. Kamprath
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:40 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2