Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Getting window close events on a monitor target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting window close events on a monitor target




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


References: 
 >Getting window close events on a monitor target (From: Mike <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.