UIDocument initWithFileURL: refers to non-existant method
| Originator: | blocksom | ||
| Number: | rdar://15834414 | Date Originated: | 16-Jan-2014 07:36 AM |
| Status: | Open | Resolved: | |
| Product: | Documentation | Product Version: | 7.1 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: The UIDocument documentation refers to a method in NSFileManager, setMobileSynchEnabled:forItemAtURL:destinationDirectory:replacementURL:error:, which does not exist Steps to Reproduce: Open the UIDocument documentation and go to the section about initWithFileURL:. Read the Discussion section. The last bit mentions this: "In the completion handler, if you want the document to be automatically synced with other devices and computers on which the application is installed, you should call the NSFileManager method setMobileSynchEnabled:forItemAtURL:destinationDirectory:replacementURL:error:." Then look up the NSFileManager documentation, or header file, and discover that no such message exists. Expected Results: The documentation should be accurate and complete. (Ha! I hope you got a good chuckle out of that one.) Actual Results: NSFileManager has no method setMobileSynchEnabled:forItemAtURL:destinationDirectory:replacementURL:error:. Regression: No such method exists in the deprecated methods section. Notes: The documentation at this point seems to be trying to describe what you should do if you want to place a document in iCloud right away. Can the file URL start out as one in the Ubiquity container, or does it need to be local first and then moved to the Ubiquity container with the NSFileManager method setUbiquitous:itemAtURL:destinationURL:error:? My tests seem to indicate it's OK to start in iCloud.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!