iOS devices should use NSFileCoordination with iTunes File Sharing
| Originator: | ivan | ||
| Number: | rdar://12588393 | Date Originated: | 10/27/2012 |
| Status: | Duplicate | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.0 |
| Classification: | Reproducible: |
Summary: It's not possible to detect when a file copied to an app through iTunes is completely transferred rather than partially. To achieve this, please make the device coordinate its writes using the NSFileCoordinator/NSFilePresenter API. Steps to Reproduce: 1. Open the attached xfer xcode project 2. Launch the app on a device (not simulator). This app is using NSFileCoordinator/Presenter to watch the Documents folder. 3. Use iTunes to transfer a file to the xfer app 3a. select the device in the iTunes Source List 3b. Select Apps Tab 3c. Go to the File Sharing section and select this app (xfer) 3d. Press the "Add…" button to add any file Expected Results: After Step 3d, the xfer.app would spit out a log indicating that it saw the file appear via the NSFilePresenter registered with the NSFileCoordinators Actual Results: No log console output appear during Step 3d. Notes: Appears to be a duplicate of rdar://11414352 and possibly rdar://10247965 (Source: http://openradar.appspot.com/11414352 ) Closed as Duplicate of 10247965
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!