Determining if a window is a document window
Determining if a window is a document window
- Subject: Determining if a window is a document window
- From: Greg Anderson <email@hidden>
- Date: Fri, 9 Jul 2004 09:31:38 -0500
I'm writing an application that's interested in doing different things
if a window it's watching is a document window, as opposed to say a
Save dialog, or a preference window. The best way I've come up with to
figure out if a window is a doc window is if the AXDocument attribute
is available. But my problem is that the AXDocument attrib isn't
available if the user creates a new document. Once it's saved I can
catch the main window change and see that it's a doc, but before that
there's no corresponding file for the window. I've thought about using
the fact that a window has a close, minimize, and zoom controls, along
with no default or cancel button. But there are plenty of non-document
windows that meet those criteria as well.
So I was curious if other developers had come up with a better
solution than the AXDocument attrib. I spent the better part of
yesterday perusing the archives, so hopefully I'm not asking too
obvious of a question.
TIA.
Greg
---
Whenever I start feeling blue, I just start breathing again.
_______________________________________________
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.