My application uses iCloud. My application stores all its data in 1 document and there should never be more than this 1 document. However, sometimes my NSMetadataQuery returns 2 documents:
0: Documents/(A Document being saved bt MyApp)/MyDoc.ext
1: Documents/MyDoc.ext
This happens mostly when the user opens the app shortly after the iOS device was rebooted.
When inspecting these 2 docs, it is document 0 that is the one with the most recent updates, so this is the one we want.
What is the reason of this "A Document Being Saved" ending up there and being the most recent one and how do I deal with this correctly, so Documents/MyDoc.ext will be the one that has the most recent content.
Thanks, -r