Skip to content

Loaded PFObject with NSCoding are not marked as dirty #14

@SebC99

Description

@SebC99

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 load PFObjects from NSUserDefaults
  • I load PFObjects from parse
  • I compare & update

I have an issue when I delete a PFObject from parse (for example with another device of the same user, or with a webapp):

  • I load the object from NSUserDefaults
  • I found nothing in Parse
  • I want to save it again in Parse, but I can't because the PFObject loaded from NSUserDefaults is not marked as Dirty... so Parse considered it to be already saved...

Do you think a PFObject created through NSUserDefaults loading should be dirty or not?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions