Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion changes are not recorded for unsaved objects #46

Open
MrRooni opened this issue May 13, 2013 · 0 comments
Open

Deletion changes are not recorded for unsaved objects #46

MrRooni opened this issue May 13, 2013 · 0 comments
Labels

Comments

@MrRooni
Copy link
Contributor

MrRooni commented May 13, 2013

If an object is inserted by client A, synced to client B, and immediately deleted by client B, no sync change is created by client B for that object.

The workaround is to save the managed object context in client B when it receives the Document Sync Manager delegate message:

- (void)documentSyncManager:(TICDSDocumentSyncManager *)aSyncManager didMakeChangesToObjectsInBackgroundContextAndSaveWithNotification:(NSNotification *)aNotification
@ghost ghost assigned MrRooni May 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant