I have two questions. These days I make fileviewer app. and we use SmartOffice.
we choose file at UIDocumentPickerViewController so we can active Security Scope so we can access to these file. when edit a file with SmartOffice, SmartOffice create temporary file at same directory, and our app should delete it according to the app's policy. but the temporary file cannot delete because it is new file to us so we don't have permission. when I do
fileManager.removeItem
log message say "you cannot delete because there is no permission to connect with ${~filename}" Is There any way to delete file that is locate at outside of sandbox?I use bookmark data, resolve to original url and use NSFilePresenter to watching file rename or change. Does NSFilePresenter automatically matching with metadata that has been change due to rename file or something?