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

Getting window close events on a monitor target



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


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.