My Mac App uses accessibility API to move an resize window (of other apps).
I would like to submit my app to the MAS (Mac App Store). I have read that to submit an app to the MAS is mandatory to turn on sandboxing.
When I turn on the sandboxing my code can´t find the focused window through the accessibility API (always return NULL). The question is: the accessibility API can´t be used with sandboxing?
I notice that there are applications in the Mac App Store that uses accessibility API, is not mandatory sandboxing by now?
Thanks in advance.
First, by March June, 2012, all Apps on the Mac Apple Store will be required to be Sandboxed, from the research I've found. Not Sandboxing isn't going to future-proof your app.
Second, I've found 3 strategies that you may consider:
If you look at the documentation, you'll find that it explicitly states you cannot sandbox an assistive app.
Here's an excerpt from their documentation on preparing an App for Sandbox:
Use of accessibility APIs in assistive apps
With App Sandbox, you can and should enable your app for accessibility, as described in Accessibility Overview. However, you cannot sandbox an assistive app such as a screen reader, and you cannot sandbox an app that controls another app.
Here's an excerpt from their documentation on Accesibility in Cocoa:
Note: With App Sandbox, you can and should enable your app for accessibility, as described in this document. However, you cannot sandbox an assistive app such as a screen reader, and you cannot sandbox an app that controls another app.
It sounds a bit like double-speak: you should enable your app to be Accessible however you cannot sandbox an assistant app...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With