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: Martin Köhler <email@hidden>
- Date: Thu, 26 Jul 2007 22:55:11 +0200
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 (Accessibility-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40users.berlios.de
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