• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Receiving global window events?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Receiving global window events?
      • From: Eric Schlegel <email@hidden>
  • Prev by Date: Re: Determine if other process is running 32 or 64 bits
  • Next by Date: Re: Receiving global window events?
  • Previous by thread: Re: Determine if other process is running 32 or 64 bits
  • Next by thread: Re: Receiving global window events?
  • Index(es):
    • Date
    • Thread