Re: Determining if a window is a document window
Re: Determining if a window is a document window
- Subject: Re: Determining if a window is a document window
- From: Mike Engber <email@hidden>
- Date: Fri, 9 Jul 2004 09:05:46 -0700
There's no 100% solution since developers are free to do whatever they
please.
Looking at the subrole attribute might help - but again, that's just a
guess as to the developer's intent.
Another idea could be to check if the save menu item is enabled when
the window is active, but again, that's no guarantee either.
-ME
On Jul 9, 2004, at 7:31 AM, Greg Anderson wrote:
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.
_______________________________________________
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.