• 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: Write to file Entitlement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Write to file Entitlement


  • Subject: Re: Write to file Entitlement
  • From: James Merkel <email@hidden>
  • Date: Tue, 01 Nov 2011 12:19:22 -0700

On Nov 1, 2011, at 11:37 AM, Laurent Daudelin wrote:

> On Nov 1, 2011, at 11:00, James Merkel wrote:
>
>> Why would someone want to base their application on the tenuous availability of a temporary exception ?
>>
>> Jim Merkel
>>
>> On Nov 1, 2011, at 10:30 AM, Laurent Etiemble wrote:
>>
>>> Hello,
>>>
>>> In a sandboxed application, you can read/write files without the save dialog by using the "File Access Temporary Exceptions" (cf.http://developer.apple.com/library/mac/#documentation/Miscellaneous/Reference/EntitlementKeyReference/AppSandboxTemporaryExceptionEntitlements/AppSandboxTemporaryExceptionEntitlements.html). These keys describe the folders in which you want to read/write files, either relative to user home folder or absolute.
>>>
>>> Here is an example to read any files inside the /Users folder:
>>>
>>> 	<key>com.apple.security.temporary-exception.files.absolute-path.read-only</key>
>>> 	<array>
>>> 		<string>/Users/</string>
>>> 	</array>
>>>
>>> Here is an example to read and write any files inside the user home:
>>>
>>> 	<key>com.apple.security.temporary-exception.files.home-relative-path.read-write</key>
>>> 	<array>
>>> 		<string>/</string>
>>> 	</array>
>
> Well, I maintain a synchronization tool. For me, that seems like a reasonable solution. Each time the user decides to synchronize 2 folders, I could just use a temporary exception.
>
> -Laurent.
> --
> Laurent Daudelin
> AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
> Logiciels Nemesys Software					email@hidden
>

Your're assuming the temporary exception will always be granted.

Jim Merkel
_______________________________________________

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

  • Follow-Ups:
    • Re: Write to file Entitlement
      • From: Shane Stanley <email@hidden>
    • Re: Write to file Entitlement
      • From: Seth Willits <email@hidden>
References: 
 >Re: Write to file Entitlement (From: Laurent Etiemble <email@hidden>)
 >Re: Write to file Entitlement (From: James Merkel <email@hidden>)
 >Re: Write to file Entitlement (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: Re: Custom NSView binding
  • Next by Date: Re: Problems with runModalForWindow, looking for alternatives
  • Previous by thread: Re: Write to file Entitlement
  • Next by thread: Re: Write to file Entitlement
  • Index(es):
    • Date
    • Thread