سؤال

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: with NSFileCoordinator, so there is no problems to work with MobileDocuments in a general way using NSFileManager

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top