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?
setUbiquitous is a method, that does
moveItemAtURL:toURL:withNSFileCoordinator, so there is no problems to work with MobileDocuments in a general way usingNSFileManager