Re: kAXResizedNotification and kAXMovedNotification working?
Re: kAXResizedNotification and kAXMovedNotification working?
- Subject: Re: kAXResizedNotification and kAXMovedNotification working?
- From: Tom Bunch <email@hidden>
- Date: Tue, 17 Jan 2006 14:31:34 -0800
Both, actually. I can't get these notifications when observing
Finder (which still appears to link Carbon but not Cocoa), Xcode
(which links specific parts of Cocoa as well as Carbon), iChat (which
links the whole Cocoa framework + Carbon), or the Sketch example (to
pick something that links Cocoa but not Carbon).
I'm using an application event handler to get a
kAXApplicationActivatedNotification so that I can always watch the
front application, so I can't presuppose which frameworks my target
will be linking.
I'll keep hacking away to make sure it isn't some stupid bug on my
part, but it would be reassuring to hear that there is actually some
circumstance under which I could receive these notifications, if
nothing else. ;-)
Let me know if I can provide more info.
-Tom
On Jan 17, 2006, at 2:10 PM, Eric Schlegel wrote:
On Jan 17, 2006, at 1:06 PM, Tom Bunch wrote:
Hi guys,
Has anyone successfully used the following notifications?
axErr = AXObserverAddNotification(_observer,
focusedElement, kAXResizedNotification, self);
axErr = AXObserverAddNotification(_observer,
focusedElement, kAXMovedNotification, self);
I have registered for kAXWindowMovedNotification and
kAXWindowResizedNotification successfully, but focusedElement may
in this case be contained in a split view and could therefore be
resized and/or moved without moving the window. I've checked that
axErr == kAXErrorSuccess, that the _observer and focusedElement
look reasonable, and that _observer is actually registered with
focusedElement's application and not some other application.
What kind of app are you trying to observe, Carbon or Cocoa? I
honestly don't know offhand what the behavior of either framework
is, but we'll need to know which framework before we can research
an answer.
-eric
_______________________________________________
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