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 > Access Window Server

Access Window Server
Thread Tools
Forum Regular
Join Date: Jan 2004
Location: Indianapolis, Indiana
Status: Offline
Reply With Quote
Jan 12, 2004, 03:10 PM
 
I am tring to find a method of getting all visible windows in Cocoa, is there documentation on accessing the window server its self?

Or will there be problems with accessing window server applications that are not in the same namespace?

Thanks for any help.
Brandon
     
Forum Regular
Join Date: Aug 2001
Location: Vienna, Austria
Status: Offline
Reply With Quote
Jan 13, 2004, 06:27 AM
 
it's possible to do that (see Quartz Debug), but it's neither documented nor supported.
     
Forum Regular
Join Date: Jan 2004
Location: Indianapolis, Indiana
Status: Offline
Reply With Quote
Jan 13, 2004, 07:36 AM
 
Thats exactly what Im looking for! Thank you!

Originally posted by amonitzer:
it's possible to do that (see Quartz Debug), but it's neither documented nor supported.
     
Mac Enthusiast
Join Date: Jan 2001
Status: Offline
Reply With Quote
Jan 13, 2004, 12:22 PM
 
While not Cocoa, you may find the following useful... sorry I don't have time to explain each of the functions.

http://lorenb.com/developer/

you need to link against Carbon... but beware - it's quite easy to completely stall the window server using these functions.
     
Forum Regular
Join Date: Jan 2004
Location: Indianapolis, Indiana
Status: Offline
Reply With Quote
Jan 14, 2004, 09:02 AM
 
Is there a way to know when new windows are created? Well i know that you can, because CodeTek's VirtualDesktop does it. From looking at the processes, it doesnt look like its just continuely refreshing, but rather knows when a new window is created, any ideas?

Originally posted by 00101001:
While not Cocoa, you may find the following useful... sorry I don't have time to explain each of the functions.

http://lorenb.com/developer/

you need to link against Carbon... but beware - it's quite easy to completely stall the window server using these functions.
     
Mac Enthusiast
Join Date: Jan 2001
Status: Offline
Reply With Quote
Jan 15, 2004, 03:48 AM
 
i have know idea how virtual desktop does its tricks... polling the number of windows is the only way i know of... and that's unacceptable.
     
Forum Regular
Join Date: Jan 2004
Location: Indianapolis, Indiana
Status: Offline
Reply With Quote
Jan 15, 2004, 07:35 AM
 
VirtualDesktop is refreshing the windowlist, at least thats what I think now after doing some investigations, i will say they did a heck of a job keeping this app using very little cpu...


Originally posted by 00101001:
i have know idea how virtual desktop does its tricks... polling the number of windows is the only way i know of... and that's unacceptable.
     
   
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:50 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