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
PFObject uploaded flag
I've got an iOS app that should display whether a PFObject has been uploaded or is merely pinned in the Local Datastore. Is there a flag for that? Do I have to make my own?

TealShift
- 842
- 5
- 19
1
vote
0 answers
PFObject isDirty cleared on call or on callback?
When is PFObject's isDirty property set to NO - is it at the moment I call [PFObject save...] method, or when that method receives a successful callback, i.e. a confirmation from the server that the save has been successful?

artooras
- 6,315
- 9
- 45
- 78
1
vote
2 answers
Parse error when trying to upload PFObject
I'm trying to make a messaging app in Parse, but I get this error when trying to upload a PFObject.
The error says:
2014-11-22 14:43:21.154 Parse demo[688:27950] Warning: A long-running operation is being executed on the main thread.
Break on…

martin
- 1,894
- 4
- 37
- 69
1
vote
1 answer
IOS Parse how do I retrieving objects from a query based on two classes?
I have two classes User and Post. The User class has a userType field and I want to retrieve all of the posts from a given userType lets call them group x. In the Post class I have a pointer to the User class.
I was trying to do something like,…

Kevin Pimentel
- 2,056
- 3
- 22
- 50
1
vote
3 answers
PFObject's saveInBackgroundWithBlock: method - the block doesn't get called
Consider this simple method:
- (void)connectSpouseToCurrentUser:(PFUser *)spouse completionBlock:(void (^)(NSError *error))completionBlock {
[PFUser currentUser][@"spouse"] = spouse;
[[PFUser currentUser]…

Andrey Gordeev
- 30,606
- 13
- 135
- 162
1
vote
1 answer
How to check the size of PFObject
Parse has a limit of 128KB per PFObject. I'm create a PFObject with an array of geo locations (doubles) which I suspect after a while will overflow this 128KB limit. How can I detect the size? Such as splitting the array across multiple PFObjects or…

AJ9
- 1,256
- 1
- 17
- 28
1
vote
1 answer
Where can i set default values when i'm Subclassing PFObject
Parse documentation says that PFObject -init can't be overriden. Where can i set default values for properties of my PFObject subclass?

user3579086
- 123
- 6
1
vote
2 answers
ios swift, passing Parse PFbject in a NSArray
I tried to make a function to load data from Parse with SWIFT.
Data is in the "crcl" className in Parse.
I can't pass PFObject as AnyObject in my NSMutableArray "timeLineData".
I have no code error but the app crash at launching.
What should i do,…

jmcastel
- 1,365
- 7
- 17
- 34
0
votes
0 answers
Implement SearchBar with PFQueryTableViewController
I use a PFQueryTableViewController, and am having difficulties adding a SearchBar to the table view. The table view shows all the items from the specific Parse class, but I'm having issues getting the search functionality to work. Clicking search…

user717452
- 33
- 14
- 73
- 149
0
votes
0 answers
Parse - JSON text did not start with array or object
I've got this issue when running my code to update a few records. I have 138 records.
I've set limit to get 1000 record per one request and then I've tried to update my new column I've created:
But I get this error when I save PFObject in…

Matrosov Oleksandr
- 25,505
- 44
- 151
- 277
0
votes
1 answer
Swift: Parse does not load a video from URL
I am trying to stream a video from backend to my device.I have a video url from backend but screen displays nothing. However, youtube url it works. Can anyone guide me why this video is not playing and how can it be played? I am using pod…

iron
- 715
- 1
- 6
- 15
0
votes
0 answers
PFQuery find object with null value
I would like to fetch all objects where paidDate is not set yet.
let query = PFQuery(className:"Salary")
query.whereKey("paidDate", equalTo: nil)
query.findObjectsInBackground { (objects, error) in
...
I don't want to put a specific date to…

Matrosov Oleksandr
- 25,505
- 44
- 151
- 277
0
votes
2 answers
Back4App create user using authenticated permission for PFUser class
As administrator I want to create another users from the iOS app. In my system I would like users to be created via my admin panel.
I have switched public permission to authenticated for User class:
When just public checkmark were selected I was…

Matrosov Oleksandr
- 25,505
- 44
- 151
- 277
0
votes
1 answer
Swift - PFObject return itself from save calback instead of bool
Just wonder if I can save parse PFObject in background and return it in callback instead of Bool.
parseObject.saveInBackground {
(success: Bool, error: Error?) in
if (success) {
…

Matrosov Oleksandr
- 25,505
- 44
- 151
- 277
0
votes
1 answer
Remove nested parse objects located in Array when removing parent record
I have an Custom class Invoice which contains an Array of custom classes InvoiceItems.
When I remove Invoice I would like to remove all records associated with it. Currently when I removed Invoice the invoice items are still listed in database.
I…

Matrosov Oleksandr
- 25,505
- 44
- 151
- 277