Are notifications supported from the sys wide object?
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