Tag for questions involving Parse Framework Object (a local representation of data persisted to the Parse cloud).
Questions tagged [pfobject]
247 questions
1
vote
1 answer
Parse: Does not query saved objects in local datastore
I am currently developing a inventory app. My goal is to retrieve objects from Parse and then saving onto the local datastore. Querying objects from Parse and saving them works (because of the console message) but querying later on from the local…
1
vote
2 answers
Implementing a like button
I'm having trouble implementing a working like button in a table cell, using Parse as the backend. There is a button in the tablecell, which is called using a sender/tag. Here's the code.
- (UITableViewCell *)tableView:(UITableView *)tableView…

HalesEnchanted
- 615
- 2
- 9
- 20
1
vote
1 answer
PFObject not working correctly with matching TextField String (Parse, Swift, iOS, Xcode 7 Beta)
My main goal is to have a user input a zipcode in the TextField, then parse will check the database too see if that zipcode matches one in the database. If it does, it'll allow the user to register and send out the println("youre in.").
If not it'll…

ermalsh
- 191
- 1
- 16
1
vote
1 answer
When i call self loadObjects, it loads it too many times?
Hello simple question probably, every time i call self loadObjects to refresh the objects in the tableview, it refreshes so many times.
I NSLog some objects to see how many times it loads, it varies, sometimes i loads four times for even 6-8 times.…

farhan
- 233
- 1
- 13
1
vote
1 answer
How to get query.whereKey(key, containedIn: [Array]) to work with relation.query
I am querying both the local data store and the server for PFObjects. To try and save mobile data usage and networking usage, the data is first looked up in the local data store and then whatever has not been found is looked up on the server.
The…

Acoop
- 2,586
- 2
- 23
- 39
1
vote
3 answers
Setting up equatable for PFObject
I m getting error when setting up equatable in swift
extension PFObject : Equatable {}
public func ==(lhs:PFObject,rhs:PFObject) -> Bool {
return lhs.objectId == rhs.objectId
}
Below the following error I m getting
Redundant conformance of…

Vimlan.G
- 193
- 1
- 13
1
vote
1 answer
How to get custom data from Parse without issues
If you look here https://i.stack.imgur.com/bJGW2.jpg you can see my issue.
if PFUser.currentUser()!.objectForKey("receivedItems") != nil && PFUser.currentUser()!.objectForKey("sentItems") != nil {
…

Samuel Hoffmann
- 13
- 5
1
vote
0 answers
Error message-Could not cast value of type 'PFObject' to 'Message'
I am trying to query a message table that I created in Parse. However, when querying the table, I get the error "Could not cast value of type 'PFObject' to 'Message'". What does this error mean?
I am getting an error on the line below:
let message…

pdf
- 23
- 6
1
vote
2 answers
The class must be registered with registerSubclass before using Parse
I’m using KVO for a property in a subclassed PFObject which is already registered during initialize.
Everything is fine if I use 1 object. On the second object I get the error The class KVO_vs_PFObject.MyModel must be registered with…

Edgardo Agno
- 59
- 5
1
vote
0 answers
Saving PFObject throws exception
I have defined my own class MYPFObject to wrap a PFObject with all the apis like saveInbackground methods directing it to internal PFObject's saveinbackground. This is to decouple my Parse code from rest of my code into one model layer.
The [PFUser…

Gauri Tikekar
- 11
- 1
1
vote
1 answer
PFQuery of a registered subclass causing an NSInternalInconsistencyException
I've had a smooth time with Parse until this point. I'm currently having a snippet of code below.
// Retrieve all ride requests
PFQuery *query = [RideRequest query];
[query includeKey:@"customer"];
[query whereKey:@"status"…

Juan Revuelta
- 11
- 2
1
vote
2 answers
How to store retrieved data to the another class in Parse
I've a small problem. I am working on an App using Parse backend. So my problem is:
i've retrieved all the objectIds of users in _User class like this:
var userIds = [String]()
var userQuery = PFUser.query()
…

Akshay Kheveria
- 201
- 1
- 15
1
vote
2 answers
Parse.com error: can't add a non-pointer to a relation
I have Messages class table and inside the table contains "messageTextColumn" column and "user" column.
This "user" column, I created it with type pointer and the target class is _User which is parse main class.
I want to store both user's saved…

sin90
- 171
- 1
- 12
1
vote
2 answers
Exception while registering subclass with Parse
I have a class called Attendee which inherits from PFObject. In my applicationDidFinishLaunching() method, I register the subclass like so:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject:…

Satre
- 1,724
- 2
- 18
- 22
1
vote
1 answer
Delete Objects From Parse/ Cannot cast to PFObject/ NSArrayM
My problem is:
I am querying user["key"] that I am attempting to assign to a new variable, as on the documentation.
The column in Parse is an array of Strings, in my query, if I println(user["key"]) it returns the correct objects.
However, when I…

viktor
- 31
- 9