startAccessingSecurityScopedResource
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