-
Notifications
You must be signed in to change notification settings - Fork 25
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
Loaded PFObject with NSCoding are not marked as dirty #14
Comments
I've been experiencing the same problem. See the following 2 links in order for full details:
The only solution I found was what I described in the second link. I just have to fetch the object again from Parse using the unarchived object's objectId property, and then make my changes to the fetched object. I am then able to save those changes to Parse and have them actually show up in the Data Browser. This problem only started happening a couple weeks ago and I'm not sure why. |
I have a solution for this. Instead of calling [self->operationSetQueue removeAllObjects] in -initWithCoder, try calling [self->operationSetQueue[0] removeAllObjects]. I'm still testing it myself, so let me know if you run into any issues with it! |
Nice one.
|
Thanks for the tip. Have you made any changes to any other parts of the code? I'm still having some issues with PFFile and PFObject serialization |
I commented the |
Could you just send me your current PFObject and PFFile categories? Also, are you doing anything to avoid saving duplicate PFFiles? I'd heard Parse cached the file data sometimes to disk, but I haven't figured out how to get a PFFile just like it is when it comes back from the server with no data, which Parse would presumably be able to use its cache with. |
Hello,
I'm trying to use Parse-NSCoding to implement a local storage functionality in my Parse iOS project, and I try to sync the data at launch:
I have an issue when I delete a PFObject from parse (for example with another device of the same user, or with a webapp):
Do you think a PFObject created through NSUserDefaults loading should be dirty or not?
Thanks
The text was updated successfully, but these errors were encountered: