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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com