Re: Still problems accessing files from my screensaver
Re: Still problems accessing files from my screensaver
- Subject: Re: Still problems accessing files from my screensaver
- From: Steve Mills via Cocoa-dev <email@hidden>
- Date: Tue, 18 Feb 2020 12:50:42 -0600
> On Feb 18, 2020, at 10:50, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> Also, it can access files on an external disk, if the directory is provided
> during the same run via NSOpenPanel.
> But not in a later run , when it tries to access those same files (on
> external disk) with user interaction.
And that’s exactly why you need to store SSBs. You only have permission to an
NSOpenPanel-gotten file for the current run or your program. Once it quits,
that permission goes away. SSBs contain the permission that was granted by
using NSOpenPanel, so on the next run, when you resolve the SSB and
startUsingSecurityS opedBookmark hor whatever that method is), the permission
will be reinstated at that time.
Steve via iPad
_______________________________________________
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