Re: AXPosition and AXSize during window drags
Re: AXPosition and AXSize during window drags
- Subject: Re: AXPosition and AXSize during window drags
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 25 Nov 2007 12:18:13 -0500
- Thread-topic: AXPosition and AXSize during window drags
on 2007-11-25 12:00 PM, Michael Ash at email@hidden wrote:
> It is impossible to fully track these drags even from *within* a Cocoa
> app, as the drag is not synchronized with the main thread (notice how
> you can drag the windows of frozen Cocoa apps) and the reported window
> frame is not updated in anything like real time. When you let go of
> the mouse, it takes about half a second before the framework begins
> reporting the correct frame for the window. If the framework can't
> even report the correct values to the app that owns the window, the
> prospects for correct reporting to other apps seem dim.
Yes, I'm vaguely aware of these issues in Cocoa. I'm writing a Leopard-only
app, and I'm hoping there's something new under the hood that I can tap
into.
> Doing an overlay window in-app is best done by using window groups in
> Carbon or child windows in Cocoa. I wonder if there might be a way to
> set up such a thing between windows of different apps. I have a
> feeling that there is, although it's probably undocumented and evil.
I was thinking along those lines, too. But I haven't yet had time to search.
My sole reason for hope is that the Finder updates its position during a
drag session very nicely. If the Finder's technique (whatever it is) is
somehow accessible underneath Cocoa, maybe I could tap into that.
Perhaps I could create a thread in my own app and read whatever a Cocoa
window dragging thread is doing more quickly than the Cocoa framework itself
finds out about it.
As I outlined in another message, Quartz Event Taps gives me an opportunity
to do something repeatedly during a drag of any application's window, Cocoa
or otherwise. The question is, what can I look at during each of those
repetitive opportunities?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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