Re: Window Opened Notification?
Re: Window Opened Notification?
- Subject: Re: Window Opened Notification?
- From: じょいすじょん <email@hidden>
- Date: Tue, 06 Sep 2016 19:15:15 +0900
> On 2016 Sep 6, at 18:49, Dave <email@hidden> 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@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