• 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: Still problems accessing files from my screensaver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Still problems accessing files from my screensaver (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: Still problems accessing files from my screensaver
  • Next by Date: Re: Still problems accessing files from my screensaver
  • Previous by thread: Still problems accessing files from my screensaver
  • Next by thread: Re: Still problems accessing files from my screensaver
  • Index(es):
    • Date
    • Thread