iTunes File Sharing should respect NSFileCoordination/NSFilePresentation

Originator:hamish
Number:rdar://11414352 Date Originated:Wed, 09 May 2012 13:31:32 GMT
Status:Duplicate/10247965 Resolved:
Product:iPhone SDK Product Version:5.1.1
Classification:Serious Bug Reproducible:Always
 
Summary:
At the moment 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 AFC daemon coordinate its writes using the presentation/coordination API.

Steps to Reproduce:
Set up an NSFilePresenter on an app's local documents directory.
Write to that directory in code through an NSFileCoordinator. The file presenter is notified accordingly.
Write to that directory through iTunes File Sharing. The file presenter is not notified.

Expected Results:
The file presenter should be notified.

Actual Results:
The file presenter is not notified.

Regression:
No.

Notes:
P.S. When are we going to get a product category called "iOS" rather than separate ones for "iPhone" and "iPad"?!

Comments

Current workaround

We are using continuous scan and compare Documents directory to detect the changes made by iTunes File Sharing. Is there a better workaround?


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!