Pergunta

The documentation says that NSFileManager's setUbiquitous method is the way to move a file to the cloud. However, I am using NSFileManager's copyItemAtURL with an NSFileCoordinator to copy a file from the application sandbox to the ubiquity container. It is working fine.

Is there a problem with this approach?

Foi útil?

Solução

setUbiquitous is a method, that does moveItemAtURL:toURL: with NSFileCoordinator, so there is no problems to work with MobileDocuments in a general way using NSFileManager

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top