ios - How to resolve conflicts in UIManagedDocument? Should I use NSFileVersion? -


i've been looking through lot of icloud documentation. can find documentation on how resolve conflicts , helpful documentation on icloud , core data, such designing core data in icloud , using core data icloud release notes. none of address how resolve icloud conflicts using uimanageddocument.

should use nsfileversion uimanageddocument?

a uidocument supposed resolved using nsfileversion. true subclass uimanageddocument?

do uimanageddocuments automatically resolve conflicts?

the icloud , core data docs refer nspersistentstoredidimportubiquitouscontentchangesnotification lot. notification lets know when changes have been made, doesn't notify of conflicts. mean conflicts automatically resolved (probably based on time stamps in core data log)?

do nsmergepolicy , nsmergeconflict have icloud?

core data has classes nsmergepolicy , nsmergeconflict, documentation doesn't mention icloud , seems apply conflicts between persistent store , managed context (rather icloud conflict). not apply icloud, correct?

apple's documentation addresses in icloud programming guide core data. in sub section design core data stack efficient, describes how icloud conflict resolution handled same way regular core data conflict resolution (ie. through merge policies):

for example, traditionally use merge policies when want merge changes made in separate managed object contexts , persistent store coordinators. icloud, in contrast, use merge policies merge changes made record on multiple peers. further discussion of merge policies, see “change management” in core data programming guide.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -