Re: Window closed notification
Re: Window closed notification
- Subject: Re: Window closed notification
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 20 Jun 2010 18:53:13 -0400
On Jun 20, 2010, at 5:45 PM, Ryan Joseph wrote:
> Is there a way to get a notification when a window is closed or otherwise destroyed? This would seem like an obvious notification to get but I can't seem to find it anywhere in the reference docs
You want the AXUIElementDestroyed notification. After a window is closed, a user can't use it, so the accessibility API considers it to have been destroyed even if the operating system still has it in memory somewhere.
To see this in UI Browser, open a window in the Finder, then register to observe the UI element destroyed notification on the Finder application. Close the Finder window, and in UI Browser's Notifications log window you'll see the UI element destroyed notification appear, listing the Finder as the observed element and the window as the affected element. Try opening and closing other UI elements while observing that notification on the target application, and you'll see that a number of different kinds of UI elements post the UI element destroyed notification when they are closed.
You can download a free 30-day trial version of UI Browser at <http://pfiddlesoft.com/uibrowser>.
--
Bill Cheeseman - email@hidden
_______________________________________________
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