Re: Getting window close events on a monitor target
Re: Getting window close events on a monitor target
- Subject: Re: Getting window close events on a monitor target
- From: Mike <email@hidden>
- Date: Thu, 26 Jul 2007 14:30:31 -0700
Thanks for your response Martin,
But I don't see an Accessibility Framework anywhere.
Mike
Martin Köhler wrote:
Am 26.07.2007 um 22:44 schrieb Mike:
I have an event handler I install on the monitor target.
I want to get close window events in my handler.
My EventTypeSpec lists the correct events but when I close a window,
my handler never gets called. I know the handler is working because I
also specify keyboard events and I am getting called when a key is
pressed. My EventTypeSpec looks like this:
const EventTypeSpec kEvents[] = { { kEventClassCommand,
kEventCommandUpdateStatus },
{ kEventClassWindow,
kEventWindowClosed },
{ kEventClassWindow,
kEventWindowClickCloseRgn },
{ kEventClassKeyboard,
kEventRawKeyDown },
{ kEventClassKeyboard,
kEventRawKeyRepeat },
{ kEventClassKeyboard,
kEventRawKeyModifiersChanged } };
_______________________________________________
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
Hi Mike,
this won't work. You can only monitor raw low-level events (keyboard,
mouse, tablet, ...).
Perhaps the Notifications of the Accessibility Framework will help you
to detect window close events.
Best regards,
-- Martin
_______________________________________________
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