user429620
user429620

Reputation:

Observing AXUIelement's children changes?

Is it possible to receive notifications if, for a specific parent AXUIelement, any of it's children change (an attributes), or a child is added/removed?

Upvotes: 1

Views: 518

Answers (1)

rhashimoto
rhashimoto

Reputation: 15839

For added/removed You can get notified if an element is created with NSAccessibilityCreatedNotification (and then check if it has the appropriate parent) and destroyed with NSAccessibilityUIElementDestroyedNotification. I don't see a accessibility notification for arbitrary attribute changes.

Upvotes: 1

Related Questions