• 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
Are notifications supported from the sys wide object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Are notifications supported from the sys wide object?


  • Subject: Are notifications supported from the sys wide object?
  • From: aaron smith <email@hidden>
  • Date: Thu, 6 Aug 2009 18:48:24 -0700

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).

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

  • Follow-Ups:
    • Re: Are notifications supported from the sys wide object?
      • From: Christiaan Hofman <email@hidden>
  • Prev by Date: Re: What Does kAXFocusedApplicationAttribute return when called for the sysWide accessiblity object?
  • Next by Date: Re: Are notifications supported from the sys wide object?
  • Previous by thread: Re: What Does kAXFocusedApplicationAttribute return when called for the sysWide accessiblity object?
  • Next by thread: Re: Are notifications supported from the sys wide object?
  • Index(es):
    • Date
    • Thread