Watching for new windows
Watching for new windows
- Subject: Watching for new windows
- From: Modesitt Software <email@hidden>
- Date: Tue, 18 Nov 2003 16:03:19 -0800
I created an application that uses the accessibility APIs to track
which window is the frontmost window from the current application. I
created an array of processes, and for each one I call
AXObserverCreate. My callback then calls AXUIElementCopyAttributeValue
to get the name of window title (using kAXTitleAttribute). This all
works fine except for one anomaly. When switching to some
applications, such as Codewarrior, my callback function gets called
twice. But when I switch to an application such as Mail, my callback
function isn't called until I open a new window in Mail. I suspect
this is because Codewarrior is a Carbon app, and Mail is a Cocoa app.
Can this be confirmed? Is this the expected behavior?
Thanks in advance,
Bill Modesitt
---
Modesitt Software
<
http://www.modesittsoftware.com>
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.