Does AXObserverRemoveNotification work?
Does AXObserverRemoveNotification work?
- Subject: Does AXObserverRemoveNotification work?
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 18 Nov 2002 16:17:49 -0500
When I call AXObserverRemoveNotification in my assistive app, the target
application unexpectedly quits, and the function generates a
kAXErrorCannotComplete error.
I get the same behavior testing TextEdit and System Preferences as the
target application. It is completely repeatable. On one occasion, it
actually caused the operating system to throw me back to the log-in screen.
I have examined the values I'm passing in the observer, element, and
notification parameters of the function, and they appear to be valid. Just
before calling the function, I am able to register the notification using
the same parameters, and when I perform the observed action in the target
application my assistive app does receive the notification, so I know the
notification was registered. I just can't remove it when I want my target
application to stop observing this notification.
Is this a known problem? Is there a workaround?
--
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.