parse.com - Parse "key cannot be nil" error on [PFObject saveInBackground] (Cocoa) -
i'm trying out parse sdk in existing mac os x application. followed setup steps in parse quickstart guide, including adding import parse library appdelegate .m file , calling: [parse setapplicationid:kparseapplicationid clientkey:kparseclientkey]; in applicationdidfinishlaunching method. 2 constants use defined in constants file imported. towards end guide says: "then copy , paste code app, example in viewdidload method (or inside method gets called when run app)" so imported parse header file main view controller .m file , copied , pasted code viewdidload method: pfobject *testobject = [pfobject objectwithclassname:@"testobject"]; testobject[@"foo"] = @"bar"; [testobject saveinbackground]; when runs, hit exception message "setobjectforkey: key cannot nil" on last line. not on previous line i'm setting object key. furthermore, if stop on previous line , po testobject, testobject.allkeys, or testobject[@"foo...