> On Feb 18, 2020, at 10:50, Gabriel Zachmann via Cocoa-dev > <cocoa-dev@lists.apple.com> 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 (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