Re: iOS open In place, permission denied
Re: iOS open In place, permission denied
- Subject: Re: iOS open In place, permission denied
- From: Markus Spoettl via Cocoa-dev <email@hidden>
- Date: Tue, 28 Apr 2020 22:11:48 +0200
On 4/28/20 11:23 AM, Markus Spoettl via Cocoa-dev wrote:
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
Just in case anyone is interested, main part of the solution is to wrap the usage of url
inside a
[url startAccessingSecurityScopedResource];
....
[url stopAccessingSecurityScopedResource];
sequence (plus use a NSFileCoordinator to read the file's contents, but that's really
secondary).
This was surprisingly difficult to figure out, the documentation really sucks.
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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