Re: CGEventTapCreate is returning NULL on MacOS Ventura 13.4.1
Re: CGEventTapCreate is returning NULL on MacOS Ventura 13.4.1
- Subject: Re: CGEventTapCreate is returning NULL on MacOS Ventura 13.4.1
- From: Peter N Lewis via Accessibility-dev <email@hidden>
- Date: Wed, 30 Aug 2023 02:22:46 +0000
- Feedback-id: 1.us-east-1.klmVX2mM1zbgRp+cXCoXDbNBF6rxDNklhyVNMANz4oA=:AmazonSES
Are you sure the issue isn't simply that your application does not properly
have accessibility permissions?
The accessibility permission system is extremely buggy, I've had cases where:
* The system setting cannot be checked or unchecked
* The system setting is checked, but the application still doesn't have
permission
* The app has permission for some things and not other things.
Also, if your application is listed in the Input Monitoring security setting,
and unchecked, that will override being listed in the Accessibility permission
even if checked.
If your app is being translocated, or is not properly signed, or the system is
in any way confused about the signing of your app, they can all lead to not
receiving accessibility permissions.
Regards,
Peter.
> On 29 Aug 2023, at 17:23, π via Accessibility-dev
> <email@hidden> wrote:
>
> I have created a speech-assistant macOS app that intercepts keyboard
> events (I've remapped CAPS-LOCK to toggle dictation).
>
> My assistant.app works. It's on my Desktop/. I double-click it and it
> runs and works.
>
> I'm trying to tweak the code, so I've rebuilt with XCode, and the new
> build DOESN'T work.
>
> The problem is that CGEventTapCreate is returning NULL.
>
> I found a discussion here:
> https://developer.apple.com/forums/thread/109283?login=true&page=1#763158022
>
> It's out of date (for macOS 10.x) but one participant created a handy
> testcase, that swaps the 'a' and 'z' keyboard keys. I've filed an
> issue: https://github.com/0x8BADFOOD/osx-cmd-launcher/issues/1
>
> At this point I'm completely stuck. Can anyone offer insight?
>
> π
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Accessibility-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
Keyboard Maestro <https://www.keyboardmaestro.com/> Editors' Choice Award
winner.
Macros for your Mac <https://download.keyboardmaestro.com/>
Join us on the Keyboard Maestro forum <https://forum.keyboardmaestro.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden