Skip to content

deleteInBackgroundWithBlock Mac OS X #100

@tomcoomer

Description

@tomcoomer

I am using the code below that has previously worked to delete an object. However, after updating to the latest SDK, It no longer seems to be working. Any ideas?
Thanks

var query = PFQuery(className:"MyClass")
        query.getObjectInBackgroundWithId("myObjectId") {
            (gameScore: PFObject?, error: NSError?) -> Void in
            if error == nil && gameScore != nil {
                println(gameScore)
                gameScore!.deleteInBackgroundWithBlock({ (success, error) -> Void in
                    println("Deleted")
                })
            } else {
                println(error)
            }
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions