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 > Mac OS X > Window manager hooks

Window manager hooks
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2003
Status: Offline
Reply With Quote
Jan 23, 2003, 07:12 PM
 
Im a grad student at Georgia tech and as part of a research project need to write an OS X program to find out details about the windows on a desktop such as the title, take snapshots, when they gain/lose focus, window maximise/minimize, creation, closure, etc...

Can anyone give me a few pointer on how to go about this? Are there any hooks that I can use to extract this data? Some people have suggested using the NSworkspace class.

Thanks
Rahul
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jan 23, 2003, 10:13 PM
 
About the only way to do this is using the Accessibility API - some sample code is at http://homepage.mac.com/castiglione/source.html
Or maybe the new GUI Scripting addons for Applescript...
[vash:~] banana% killall killall
Terminated
     
Dedicated MacNNer
Join Date: Dec 2001
Location: Promised Land
Status: Offline
Reply With Quote
Jan 24, 2003, 12:57 AM
 
Originally posted by Gul Banana:
About the only way to do this is using the Accessibility API - some sample code is at http://homepage.mac.com/castiglione/source.html
Or maybe the new GUI Scripting addons for Applescript...
You may also be able to hook in via some of the CGRemote stuff. That should get you everything you want and it works on 10.1 and 10.2. But, you're probably looking at quite a bit of work.

HTH.
G5 2.5 DP/2GB RAM/NVidia 6800 Ultra
PowerBook Al 1Ghz/768MB RAM
6gb Blue iPod Mini
     
   
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 07:39 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