AXUIElement destroyed for <null>
AXUIElement destroyed for <null>
- Subject: AXUIElement destroyed for <null>
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 21 Nov 2002 17:32:03 -0500
I'm definitely getting NULL for some of the affected elements In
AXUIElementDestroyed notifications received when closing windows. I log my
results, and here's the log from observing Text Edit, after closing one
window that had no unsaved changes, and one that did -- and therefore
presented a save sheet with three buttons.
2002-11-21 17:03:37.099 Accessibility Browser[5140] Received
AXUIElementDestroyed for (null)
2002-11-21 17:04:22.388 Accessibility Browser[5140] Received
AXUIElementDestroyed for (null)
2002-11-21 17:04:22.404 Accessibility Browser[5140] Received
AXUIElementDestroyed for (null)
2002-11-21 17:04:22.406 Accessibility Browser[5140] Received
AXUIElementDestroyed for (null)
2002-11-21 17:04:22.407 Accessibility Browser[5140] Received
AXUIElementDestroyed for (null)
Additional tests, below, suggest that the NULL elements are the AXUnknown
elements related to the Cocoa text ruler at the top of the Text Edit window.
But in the end, that turns out not to be the case.
Here are some more null elements, received after registering for the
AXValueChanged notification and then opening a New Text Edit window:
2002-11-21 17:09:24.944 Accessibility Browser[5140] Received AXValueChanged
for (null)
2002-11-21 17:09:27.947 Accessibility Browser[5140] Received AXValueChanged
for (null)
2002-11-21 17:09:30.262 Accessibility Browser[5140] Received AXValueChanged
for (null)
2002-11-21 17:09:30.288 Accessibility Browser[5140] Received AXValueChanged
for (null)
2002-11-21 17:09:30.292 Accessibility Browser[5140] Received AXValueChanged
for AXRadioGroup
2002-11-21 17:09:30.294 Accessibility Browser[5140] Received AXValueChanged
for AXRadioGroup
2002-11-21 17:09:30.297 Accessibility Browser[5140] Received AXValueChanged
for AXRadioGroup
2002-11-21 17:09:30.299 Accessibility Browser[5140] Received AXValueChanged
for AXTextField
The AXTextField is of course the main typing area of a Text Edit window, and
the AXRadioGroup's are those of the editing button in the Cocoa text ruler
than the accessibility API recognizes. I don't know what the NULL items are,
but I thought for a while based on prior experiments that they might be
AXUnknown objects in the Cocoa text ruler (which is itself an AXUnknown
element).
The Cocoa text ruler does not appear as a child of its parent, as I reported
previously. I implemented a workaround based on the expected location of a
text ruler relative to its associated text area.
I finally tested the AXUIElementDestroyed notification when closing a
TextEdit window AFTER HIDING THE RULER, and I did not get any NULL-element
notifications. That seemed for a little while to prove that the problem is
the Cocoa text ruler.
(I didn't get ANY AXUIElementDestroyed notification when I hid the text
ruler.)
But now I've closed some more Text Edit windows without text rulers, and I
got a bunch of NULL elements.
There's always a possibility of a missing retain somewhere in my code to
account for this. I'll test some more in the morning.
--
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
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.