Re: Receiving global window events?
Re: Receiving global window events?
- Subject: Re: Receiving global window events?
- From: "Mr. Gecko" <email@hidden>
- Date: Wed, 16 Feb 2011 16:07:26 -0600
My guess is I'll have to keep track of applications starting and get their pid to do everything. I was kinda hoping for a register for all, but it doesn't seem to have it.
AXObserverRef observer;
AXObserverCreate(0, testEvent, &observer);
AXObserverAddNotification(observer, NULL, kAXWindowMiniaturizedNotification, self);
Or am I just doing it wrong?
On Feb 16, 2011, at 2:50 PM, Eric Schlegel wrote:
> The only supported way to detect window events in other processes is to use the accessibility API. In this case, you'd want to use some of these notifications:
>
> kAXWindowMiniaturizedNotification
> kAXWindowDeminiaturizedNotification
>
> and kAXUIElementDestroyedNotification for detecting when a window closes.
>
> -eric
>
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