Receiving global window events?
Receiving global window events?
- Subject: Receiving global window events?
- From: "Mr. Gecko" <email@hidden>
- Date: Wed, 16 Feb 2011 14:21:04 -0600
Hello. I'm trying to have my application receive events of windows from other applications. I have tried carbon events, I may be doing it wrong, but it doesn't work. For an example, if I wanted to watch for when an window minimizes to the dock, I'll use the following.
EventTypeSpec eventType;
eventType.eventClass = kEventClassWindow;
eventType.eventKind = kEventWindowCollapsing;
InstallEventHandler(GetEventMonitorTarget(), NewEventHandlerUPP(testEvent), 1, &eventType, self, NULL);
I would expect this to work as it works for keyboard and mouse events. I would also like to be able to get an event when the window closes, and maximizes (zooms). I see events for this in the carbon events, but I am guessing you must use GetWindowEventTarget to get the events for the window you want it from.
Thanks for any help,
Mr. Gecko
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden