• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determine sandbox/entitlements at runtime?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine sandbox/entitlements at runtime?


  • Subject: Re: Determine sandbox/entitlements at runtime?
  • From: Dong Feng <email@hidden>
  • Date: Fri, 16 Dec 2011 10:11:42 +0800

For it's a fallback, I think you'd better just try the ScriptingBridge and
fallback whenever it fails. It's better than to check the Sandbox presence
all beforehand. Does that make sense?

Dong



2011/12/15 Eric Wing <email@hidden>

> 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 (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
>
_______________________________________________

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

References: 
 >Determine sandbox/entitlements at runtime? (From: Eric Wing <email@hidden>)

  • Prev by Date: Re: Determine sandbox/entitlements at runtime?
  • Next by Date: Re: Updating an app's help
  • Previous by thread: Re: Determine sandbox/entitlements at runtime?
  • Next by thread: RE: NSTableView - how to dynamically change the height of the elements? (Nick)
  • Index(es):
    • Date
    • Thread