• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Are notifications supported from the sys wide object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Are notifications supported from the sys wide object? (From: aaron smith <email@hidden>)
 >Re: Are notifications supported from the sys wide object? (From: Christiaan Hofman <email@hidden>)

  • Prev by Date: Re: Are notifications supported from the sys wide object?
  • Next by Date: allowing vo to read automatically
  • Previous by thread: Re: Are notifications supported from the sys wide object?
  • Next by thread: allowing vo to read automatically
  • Index(es):
    • Date
    • Thread