How to check if the app is sandboxed and what entitlements it has got?
How to check if the app is sandboxed and what entitlements it has got?
- Subject: How to check if the app is sandboxed and what entitlements it has got?
- From: Oleg Krupnov <email@hidden>
- Date: Sat, 27 Oct 2012 13:21:21 +0300
Hi,
I'm writing a component which I intend to use in several my apps. Some
of the apps may be sandboxed. I'd like to turn off some functionality
in case if the app is sandboxed and there are no entitlements that I
need.
I'd be happy with either compile-time or run-time solution.
I've googled a solution
http://oleb.net/blog/2012/02/checking-code-signing-and-sandboxing-status-in-code/
but it's using a rather obscure Security framework and it doesn't
check particular entitlements. Generally it looks like a hacky
workaround. I wonder if there is a simpler straightforward solution.
Thanks!
_______________________________________________
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