Questions tagged [pfobject]

Tag for questions involving Parse Framework Object (a local representation of data persisted to the Parse cloud).

247 questions
2
votes
1 answer

How to initialize PFObject subclass when fetched?

The Parse docs specifically state that you should not override init for subclasses of PFObject. That's okay for objects that are created in code because you can override the object method, like this... @implementaion CustomObject : PFObject…
pizzafilms
  • 3,829
  • 4
  • 24
  • 39
2
votes
3 answers

How to retrofit Parse’s PFObject to an existing, complex, aggregate model class?

I have an existing model class which I would like to manage with Parse, ideally by changing its superclass from NSObject to PFObject. But this is a real-world model class, designed without Parse in mind, so it presents a number of…
algal
  • 27,584
  • 13
  • 78
  • 80
2
votes
0 answers

How to fix Assertion failure on PFQuery

This simple query of Score (subclass of PFObject)... PFQuery *selfScoresQ = [PFQuery queryWithClassName:[Score parseClassName]]; NSArray *selfScores = [selfScoresQ findObjects]; returns this Assertion failure... Assertion failure in +[PFObject…
user1905842
  • 165
  • 1
  • 13
2
votes
2 answers

Swift : Parse subclass dynamic var dont get included when retrieving object

I can´t get the object properties when retrieving an object from Parse Data Browser. This happened after I changed from "@NSManaged var friends" to "dynamic var friends". Even "name" show nil in User.logInWithUsernameInBackground block which is…
0xRLA
  • 3,279
  • 4
  • 30
  • 42
2
votes
1 answer

AnyObject to NsDictionery

How can i convert this javascript data to ios compatible data and put it in a dictionary, when i do something like this newCustomer["cvc_check"] etc nothing comes up i get a nil, l am trying to get data from parse PFCloud.callFunctioninBackground…
mavusane
  • 247
  • 1
  • 2
  • 8
1
vote
1 answer

cannot resolve symbol Object in Object.,extend

I'm trying to use a parse server from back4app as my backend and I'm having troubles with the initial installation part.So I followed the documentation given in back4app to connect my app to the parse server and the installation shows in the…
1
vote
1 answer

Two separate users saving same PFObject

If two separate users have the same PFObject locally and user1 saves the object first then user2 calls to save it next(like below), will the array only contain user2 objectId or both objectIds? [object addUniqueObject:[[PFUser…
Peter
  • 1,053
  • 13
  • 29
1
vote
1 answer

How to use PFQuery getObjectWithId?

Working with PFObject and PFQuery I am having trouble debugging this piece of code: ....... if let someContents = object.valueForKey("contents") { let query = PFQuery(className: "TheContentList") do {let object = try…
Michel
  • 10,303
  • 17
  • 82
  • 179
1
vote
2 answers

Looping Through Array of Different Lengths Swift

I am making a code that displays all the messages in a table view. To & From. The problem I am running into is the arrays are different lengths and when comparing them the loop stops at the shortest on instead of continuing. What Im doing is taking…
1
vote
1 answer

Programmatically deleting data associated with PFUser.objectID if PFUser is deleted

So in my app I am using Parse for user accounts. I have a class "Follow" with "to" and "from" fields containing user object ids, allowing users to follow each other. Now, if I delete a user somehow, the follow relation remains in tact and querying…
NotMe
  • 77
  • 11
1
vote
1 answer

To-one relationship to PFObject subclass fails with circular reference

I'm creating two custom PFObject subclass: Match and Set A match has a property called setTest which point to a Set. Both class are registered with Parse in the app delegate. When I initialize a match object (which creates a set object too), i get…
otusweb
  • 1,638
  • 1
  • 19
  • 30
1
vote
1 answer

Add behavior to delete method in parse

I have a custom subclass of PFObject which keeps track of a large video file on the device. I want to make sure that if i delete the PFObject the videoFile is also deleted. For now if have override all variants of the delete method, but that seem…
otusweb
  • 1,638
  • 1
  • 19
  • 30
1
vote
1 answer

Check if query key is nil Parse

So, I have a query in parse that has to find objects based on whether a key is equal to a certain object. Here is the few lines of code. var gamesQuery = PFQuery(className: "Games") gamesQuery.whereKey("challenged", equalTo:…
Aidan Kaiser
  • 501
  • 5
  • 17
1
vote
1 answer

subclass PFObject and override init

I wanted to create custom PFObject class, but it gives me a very confusing error "Property self.photo not initialized at super.init call" here is code of my custom class : import Foundation import Parse class Wish: PFObject, PFSubclassing { var…
Ammo
  • 570
  • 1
  • 8
  • 22
1
vote
2 answers

How to fetch all liked images (pointer) from current user?

I have a Parse classes "Activity" and "Photo". How to fetch NSArray of PFObjects liked images from currentUser? PFQuery *queryLikedPhoto = [PFQuery queryWithClassName:@"Activity"]; [queryLikedPhoto whereKey:@"type"…
1 2
3
16 17