Are you sure about this?  Because my sandboxed app seems to be able to load 
plugins from the root library application support folder without difficulty.  
In addition, I can't see how it breaches the sandbox to load plugins from 
anywhere - no files are being modified (just code loaded from the plugin), and 
the plugin is subject to my application's sandbox privileges (and thus unable 
to do anything bad).  Surely, therefore, an application should be able to load 
a plugin from anywhere?

Regards,

Pascal

On 23 Jun 2013, at 23:09, Kyle Sluder <k...@ksluder.com> wrote:

> On Jun 23, 2013, at 1:49 PM, Pax <45rpmli...@googlemail.com> wrote:
> 
>> Just a quickie, I hope!  I'm writing a sandboxed application that uses 
>> plugins.  The plugin directories that I want to load from are 
>> '/Library/Application Support/MyApp' and '~/Library/Application 
>> Support/MyApp'.
> 
> You do not have access to these locations from within a sandboxed app.
> 
> The recommended way forward is to use a container migration manifest to move 
> files in these locations into your container. It is then your app's 
> responsibility for presenting a user interface for managing these files.
> 
> An alternative is to request a temporary entitlement for the directories you 
> wish to access, and then use getpwuid to find the user's home directory. You 
> cannot consider this a permanent solution, and should consider offering the 
> migration approach as an alternative (perhaps as an in-app process hiding 
> behind a confirmation dialog).
> 
> --Kyle Sluder


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to