Re: Are notifications supported from the sys wide object?
Re: Are notifications supported from the sys wide object?
- Subject: Re: Are notifications supported from the sys wide object?
- From: aaron smith <email@hidden>
- Date: Fri, 7 Aug 2009 09:39:58 -0700
Thanks.
On Fri, Aug 7, 2009 at 2:35 AM, Christiaan Hofman<email@hidden> wrote:
>
> On Aug 7, 2009, at 3:48 AM, aaron smith wrote:
>
>> Hey All,
>>
>> Quick question. I'm getting into notifications from the accessibility
>> api. I noticed that the AXObserverCreate requires a pid_t for an
>> application. Is it the pid of the application that I want
>> notifications from, or the application that the code is running in (so
>> like the the pid of my running app).
>>
>
> Quote from the documentation on this function: "Creates a new observer that
> can receive notifications from the specified application."
>
> Christiaan
>
>> This was starting to lead me to believe that you can't register for
>> notifications from the AXUIElementCreateSystemWide() element? For
>> example If I wanted to listen for the
>> NSAccessibilityFocusedWindowChangedNotification.
>>
>> In general, this is how I am thinking the observers go down:
>>
>> AXUIElementRef sys = AXUIElementCreateSystemWide();
>> void mycallback(AXObserverCallback callbk) {
>> //handle notification
>> }
>> AXObserverRef observer;
>> AXObserverCreate(?, (void *)mycallback,&observer);
>> AXObserverAddNotification(observer,sys,
>> NSAccessibilityFocusedWindowChangedNotification,NULL);
>>
>> Thank you! much appreciated.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Accessibility-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>>
>> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden