Re: Can't delete file on external disk

2020-03-12 Thread Gabriel Zachmann via Cocoa-dev
> > Are you using startAccessingSecurityScopedResource? Sorry I forgot to mention: yes, I do startAccessingSecurityScopedResource. Also, reading the files works just fine. (Haven't tried writing on them, because that is of no concern in my app. Just reading or deleting.) Best regards, Gabri

Re: Can't delete file on external disk

2020-03-12 Thread James Walker via Cocoa-dev
On 3/12/20 9:55 AM, Gabriel Zachmann via Cocoa-dev wrote: In my app, I collect lists of files that reside on an external disk. When the user opens the directory of the files, I create a security-scoped bookmark like this: directoryBookmark_ = [dir bookmarkDataWithOptions: NSURLBookmarkCre

Can't delete file on external disk

2020-03-12 Thread Gabriel Zachmann via Cocoa-dev
In my app, I collect lists of files that reside on an external disk. When the user opens the directory of the files, I create a security-scoped bookmark like this: directoryBookmark_ = [dir bookmarkDataWithOptions: NSURLBookmarkCreationWithSecurityScope includingResour