Hi, I’m already using Accessibility but the notification I get when a window is created is posted to too late for it to help in this case.
I’m also using Event Taps, I want to be able to stop events being fired to the window until I have received and procesed the Window Created Accessibility Notification. Cheers Dave > On 6 Sep 2016, at 11:15, じょいすじょん <[email protected]> wrote: > > >> On 2016 Sep 6, at 18:49, Dave <[email protected] >> <mailto:[email protected]>> wrote: >> >>> >>> Ah. >>> Well in that case, you get accessibility and you need users to allow it >>> once. >> >> I said in my original post - without using Accessibility >> >> Cheers >> Dave > I know. I remember. > Point is, the AX API is your only realistic option to achieve this. > What you never really said is what you are really trying to accomplish. > With that, somebody might be able to point you to something useful. > > You could try something with NSWorkspace & NSRunningApplication + CGWindowList > > You could also try to hack together an NSEvent global event monitor or a > CGEventTap approach and try to intercept and guess at events. > Pretty sure that would be very difficult with sandboxing. > > Neither one would do quite what you would really like _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
