NSFilePresenter introductionary documentation incorrectly references a method
| Originator: | matej | ||
| Number: | rdar://30231277 | Date Originated: | 27-Jan-2017 11:00 AM |
| Status: | Open | Resolved: | |
| Product: | Documentation | Product Version: | Xcode 8.2.1 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: The NSFilePresenter documentation contains the following paragraph: File Presenters and iOS If your app enters the background with an active file presenter, any other processes that perform a coordinated read or write on the presented file can deadlock. To prevent this situation, call presentedItemURL to remove the file presenter in the applicationDidEnterBackground(_:) method or in response to a UIApplicationDidEnterBackground notification. Call presentedItemOperationQueue to add the file presenter again in the applicationWillEnterForeground(_:) method or in response to a UIApplicationWillEnterForeground notification. https://developer.apple.com/reference/foundation/nsfilepresenter Steps to Reproduce: Read the paragraph. Notice “Call presentedItemOperationQueue to add the file presenter again” does not make sense here. Expected Results: “Call addFilePresenter(_:) to add the file presenter again” Actual Results: ““Call presentedItemOperationQueue to add the file presenter again”“ Regression: Occurs in the documentation bundled with Xcode 8.2.1. Notes: The NSFileCoordinator documentation https://developer.apple.com/reference/foundation/nsfilecoordinator has the same paragraph with the correct reference to addFilePresenter(_:).
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!