• 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: Getting the location of the Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the location of the Library


  • Subject: Re: Getting the location of the Library
  • From: Mike Abdullah <email@hidden>
  • Date: Mon, 24 Jun 2013 09:51:25 +0100

On 23 Jun 2013, at 23:09, Kyle Sluder <email@hidden> wrote:

> On Jun 23, 2013, at 1:49 PM, Pax <email@hidden> 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).

Plus if this is for the app store, chances you won't be approved with such a temporary entitlement.

Apple's point of view — and one that I agree with here — is that the Library is something your users need not know or care about. Instead provide a means for (un)installing plug-ins from within your app itself, and do so by placing them inside your sandbox.
_______________________________________________

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: 
 >Getting the location of the Library (From: Pax <email@hidden>)
 >Re: Getting the location of the Library (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Why is it wrong to have relationships without an inverse
  • Next by Date: Re: Getting the location of the Library
  • Previous by thread: Re: Getting the location of the Library
  • Next by thread: Re: Getting the location of the Library
  • Index(es):
    • Date
    • Thread