Exploring support for document conflict resolution on iOS (Mac is well covered automatically by NSDocument) and I've run into a mystery.
Conflict Situation:
Two apps (one iOS, one Mac) have the same iCloud document open. Both make changes and iCloud detects a conflict. Both apps present conflict resolution interfaces (Mac automatically, iOS with my code, modeled on Pages).
Resolution:
Resolve a conflict on the iOS side, the Mac side syncs up perfectly.
Repeat the situation, but now resolve on the Mac side and the iOS side just sits there with its conflict resolution UI presented and the last UIDocumentChangeState received is set to Conflict.
Discussion:
I thought I would get one last UIDocumentChangeState that would tell me that the Document is back to Normal (so I could dismiss the conflict sheet and reload the contents, if necessary). But no further notifications are sent (until I close the document - and then I get a "Closed | Conflict" state!)
Is there some other notification I'm missing?
Pages, when put into a similar situation, of course detects the resolution and dismisses its sheet.
Surely I can't be the first to trip over this, but there's very little discussion on the web.
Thanks for any pointers,
Robert.
Conflict Situation:
Two apps (one iOS, one Mac) have the same iCloud document open. Both make changes and iCloud detects a conflict. Both apps present conflict resolution interfaces (Mac automatically, iOS with my code, modeled on Pages).
Resolution:
Resolve a conflict on the iOS side, the Mac side syncs up perfectly.
Repeat the situation, but now resolve on the Mac side and the iOS side just sits there with its conflict resolution UI presented and the last UIDocumentChangeState received is set to Conflict.
Discussion:
I thought I would get one last UIDocumentChangeState that would tell me that the Document is back to Normal (so I could dismiss the conflict sheet and reload the contents, if necessary). But no further notifications are sent (until I close the document - and then I get a "Closed | Conflict" state!)
Is there some other notification I'm missing?
Pages, when put into a similar situation, of course detects the resolution and dismisses its sheet.
Surely I can't be the first to trip over this, but there's very little discussion on the web.
Thanks for any pointers,
Robert.