Re: Does AXObserverRemoveNotification work?
Re: Does AXObserverRemoveNotification work?
- Subject: Re: Does AXObserverRemoveNotification work?
- From: Matthew Formica <email@hidden>
- Date: Mon, 18 Nov 2002 17:48:50 -0800
This has been mentioned on this list before. This is a known bug; currently
if you try to call AXObserverRemoveNotification you'll crash the app you
were observing. So the workaround is to not remove yourself as an observer.
But don't gut that code altogether; it will be fixed in in an upcoming OS
release, at which point you can conditionalize things and remove yourself as
an observer if you are on a fixed system.
- Matthew
On 11/18/02 1:17 PM, "Bill Cheeseman" <email@hidden> wrote:
>
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.
_______________________________________________
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.