• 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
startAccessingSecurityScopedResource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

startAccessingSecurityScopedResource


  • Subject: startAccessingSecurityScopedResource
  • From: koko <email@hidden>
  • Date: Tue, 21 Jan 2014 19:26:41 -0700

In the code snippet below is it possible to read the files whose names are in the NSArray contents?


       if ( [url startAccessingSecurityScopedResource] )
        {
            NSFileManager *defaultManager = [NSFileManager defaultManager];
            NSArray *contents = [defaultManager contentsOfDirectoryAtPath:[url path] error:&error];
             [url stopAccessingSecurityScopedResource];
        }


-koko
_______________________________________________

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:
    • [MORE} startAccessingSecurityScopedResource
      • From: koko <email@hidden>
  • Prev by Date: Re: Removing unrelated view shrinks items in UIToolbar
  • Next by Date: [MORE} startAccessingSecurityScopedResource
  • Previous by thread: Re: Removing unrelated view shrinks items in UIToolbar
  • Next by thread: [MORE} startAccessingSecurityScopedResource
  • Index(es):
    • Date
    • Thread