Re: How to determine if a sheet is topmost
Re: How to determine if a sheet is topmost
- Subject: Re: How to determine if a sheet is topmost
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 03 Nov 2006 15:25:57 -0500
- Thread-topic: How to determine if a sheet is topmost
on 2006-11-03 3:03 PM, BK at email@hidden wrote:
> On a related note, is there anyway to determine the role of the
> AXUIElementRef that is destroyed? My app receives the
> NSAccessibilityUIElementDestroyedNotification notification, so it
> knows when a window has been closed. But when I try to determine the
> role of the destroyed AXUIElementRef, I receive this error:
> kAXErrorInvalidUIElement = -2520. Does this mean the role of the
> destroyed AXUIElementRef cannot be determined? I'm just trying to
> find out if the closed window is a sheet or modal window or normal
> window.
When you first get the ref, cache the role in a variable that is associated
with the variable your ref was assigned to. Then you can get it from the
variable when the ref is destroyed.
In PreFab UI Browser, I cache every attribute, action and notification
associated with the most recently selected UI element. Then I let you
examine all of them at your leisure even after the element is destroyed --
until you select another element and the cache is overwritten.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden