Re: Minimized Cocoa windows say that kAXMainAttribute can't be set
Re: Minimized Cocoa windows say that kAXMainAttribute can't be set
- Subject: Re: Minimized Cocoa windows say that kAXMainAttribute can't be set
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 20 Mar 2003 06:27:01 -0500
on 03-03-20 5:30 AM, Matt Gough at email@hidden wrote:
>
> If you want to see if an element supports an attribute, just look to see if
>
> the attribute name is in the element's attribute list. The fact that
>
> kAXMainAttribute is in the attribute list implies that -- in the right
>
> situation -- the window can be main.
>
>
>
>
That may be true in theory, that is not what I have found in practice:
>
>
For example:
>
>
In Safari (v60) The Downloads window has the AXMain attribute, but it is
>
always "0"
I understand that Cocoa apps generally list all attributes that the class
supports, even if the individual application does not support all of them,
while Carbon apps generally only list those attributes that the individual
application supports.
So the suggestion to test whether the attribute name is in the element's
attribute list would not be reliable as to what might happen when the window
is de-minimized.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.