How to ask user to grant access ?
How to ask user to grant access ?
- Subject: How to ask user to grant access ?
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Fri, 13 Mar 2020 15:46:41 +0100
PS:
So far, I am not even getting permissions within the same app invocation.
What I have tried is, when I hit an alias that is also a directory,
I open an NSOpenPanel with setDirectoryURL: resolved URL of the alias.
The user hits OK, then I try to set up an enumerator with that URL.
However, the enumerator's error handler gives me
Error Domain=NSCocoaErrorDomain Code=257 "The file “images” couldn’t be
opened because you don’t have permission to view it."
("images" is the directory name I was trying to enumerate.)
I have checked that the resolved URL of the alias does point to the correct
directory.
_______________________________________________
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