Questioning [[[NSProcessInfo] processInfo] environment] should work to check whether sandboxing is enabled or not, but not for checking entitlements. As use of the Scripting Bridge will be covered by a temporary entitlement at best, better don't rely on scripting at all.
Tim http://www.timschroeder.net Am 15.12.2011 um 00:51 schrieb Eric Wing: > For a Mac app, is there a way to determine if sandboxing is enabled in > an app and which entitlements are set, all at runtime? > > I am writing a middleware framework where I don't know what the user > is actually doing and they may not be able to change the compile > options of my framework. If the app is not sandboxed or if I have the > correct entitlements, I would like to use ScriptingBridge to talk to > another app (say Mail.app to compose an email). But if the app can't > use ScriptingBridge, I would like to fallback to openURL (e.g. use > mailto:). > > > Thanks, > Eric > -- > Beginning iPhone Games Development > http://playcontrol.net/iphonegamebook/ > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/tim%40timschroeder.net > > This email sent to t...@timschroeder.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com