Mac OS X app sandbox user prompt responses

Users get an initial prompt to 'allow incoming connections' when starting my sandboxed Mac OS X app for the first time. How do I detect when a user refuses to allow the incoming connections so that my application can take the best course of action?

Replies

Anyone on the Apple team?

I should know this off the top of my head but, alas, I do not )-: Given that no one else has chimed in, I recommend that you open a DTS tech support incident and I'll find you a proper answer.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I think that's caused by the firewall, and has nothing to do with sandboxing. As a result, I don't think it will cause any API calls to fail, or anything else readily detectable from the app.


The only way I can think of to detect the user choosing to block inbound connections would be to connect to yourself via 127.0.0.1 and see if the connect call fails. And even that might not work, depending on what the built-in firewall block rules look like.