Re: [Repost] Various AXObserver questions
Re: [Repost] Various AXObserver questions
- Subject: Re: [Repost] Various AXObserver questions
- From: Matt Gough <email@hidden>
- Date: Wed, 19 Mar 2003 15:22:25 +0000
>
> in that case, is it OK to AXObserverRemoveNotification from within the
>
> Observer Callback itself?
>
>
>
> E.g.
>
>
>
> void
>
> ObserverCallback(
>
> AXObserverRef observer,
>
> AXUIElementRef element,
>
> CFStringRef notification,
>
> void* refCon)
>
> {
>
> #pragma unused(observer, element, notification)
>
> if (CFEqual(notification, kAXUIElementDestroyedNotification))
>
> AXObserverRemoveNotification(observer, element, notification);
>
> }
>
>
>
>
Yes that should be ok.
It seems to be OK, except that every once in a while,
AXObserverRemoveNotification returns kAXErrorInvalidUIElement (-25202).
Any ideas why (and should I worry about it?)
_______________________________________________
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.