Questions tagged [pfobject]

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

247 questions
1
vote
1 answer

Save a Parse Object Causes Another Object Saved Too

I am quite new with Parse, I am confused on how parse works. Here I have a PFUser, PFGroupObject, PFUserGroupObject. Where PFUserGroupObject is a "Table" that relate user an group. PFUserGroupObject and PFGroupObject is my custom PFObject What…
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
1
vote
2 answers

Storing a PFObject pointer in an app's PFConfig

I want to store a pointer to a specific object as an Object Pointer in a PFConfig, similar to how objects can point to each other in the database. I see there is a way to create an Object field in the PFConfig, but when I enter the corresponding…
Satre
  • 1,724
  • 2
  • 18
  • 22
1
vote
1 answer

Parse.com get users from subquery in other class Cloud Code

I have the class Friends on Parse: Class Friends{ "from" : Pointer(_User) "to" : Pointer(_User) "allowSee" : Boolean "block" : Boolean "createdAt" : Date "updatedAt" : Date } I have a Parse.Query where I get my friends, but this…
1
vote
1 answer

Cast from '[PFObject]' to unrelated type 'int' always fails [Swift]

I'm trying to put into a variable my PFObject (I'm using Parse): func retrieveScore() { var query:PFQuery = PFQuery(className: "Score") query.findObjectsInBackgroundWithBlock { (objects:[AnyObject]?, error:NSError?) -> Void in …
Luca Alberto
  • 1,195
  • 3
  • 11
  • 30
1
vote
1 answer

UITableViewController with Sections using Parse as backend in Swift

What is the best way to get data from Parse in a TableView, be able to create different sections and only store the 30 newest objects locally? My Applikation has an PFObject Challenge, the Challenge can be in the state "Accepted" or "Not Accepted".…
Daniel Storch
  • 979
  • 3
  • 10
  • 25
1
vote
1 answer

Automatic copying of some value whenever it's changed in cloud code [ parse.com ]

How to write in cloud code ( parse.com ) a short program that automaticaly copies value of a field of one PFObject to certain field of other PFObject (of different class than the original one) whenever the original field is being changed? For…
Bartek Uchański
  • 119
  • 1
  • 12
1
vote
2 answers

Set variable asynchronously and use within view controller

Let's say I have the following asynchronous query: var kittens: [PFObject]! self.tempView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "pushToView")) var query = PFQuery(className:…
gotnull
  • 26,454
  • 22
  • 137
  • 203
1
vote
0 answers

Populate a PFQueryTableViewController from multiple Parse Classes

My goal to create a news feed tableview (in my iOS app using Swift). All items that will be displayed on the news feed are being pulled from my Parse.com database. The problem is that my news feed will contain cells with information from multiple…
nohalon
  • 25
  • 2
1
vote
1 answer

Parse iOS SDK, cannot get all fields from _User table

In my application I store information in other fields of the Parse _User table such as a user rank and home City/State. I was able to read all the data from the table for a user simply by running a PFUser query command. PFQuery *userQuery = [PFUser…
adeiji
  • 550
  • 1
  • 3
  • 13
1
vote
1 answer

Query Parse to preload all objectID data in Swift

I'm building a sort of hot or not style app in Swift where the user can vote: HOT, NOT and MAYBE on an image, respectively. For every time the user gets to a image, they vote and then for each respective vote the IBAction triggers a query that…
Lukesivi
  • 2,206
  • 4
  • 25
  • 43
1
vote
0 answers

Updating Row in Parse Without objectID Swift

I'm building a rating app in Swift where I'm storing an image's average votes, total votes, and current vote in Parse. I want to update the row without having the objectId. Giving each image an objectId + querying Parse for every time that image…
Lukesivi
  • 2,206
  • 4
  • 25
  • 43
1
vote
0 answers

Realm: Pushing RLMObjects to Parse as PFObject, mapping issue with RLMArray type (relationships)

I am using https://github.com/newlix/PRSync/ to sync RLMObjects to Parse backend and vice versa. Let's say I need to push a RLMObject, I use the following function from the PRSync.swift. public func pushObjectEventually
Subzero
  • 841
  • 6
  • 20
1
vote
0 answers

Custom setter on subclassed PFObject property not working

I have a subclasses PFObject - Conversation. I need a custom setter for it's users property. So I changed @dynamic to @synthesize: @synthesize users = _users; And setup my setter as so: -(void)setUsers:(NSArray *)users { @synchronized (self) …
monkeydog
  • 27
  • 1
  • 5
1
vote
1 answer

How do I "box" a PFObject inside an iOS push notification?

I want to send a PFObject directly over a push notification. I send the Parse object directly inside the push (e.g. with a custom key "arg") but I couldn't figure out how to construct a real PFObject from the received data. Received data is…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
1
vote
1 answer

Initialization methods for PFObject Subclass Objects that are Generated by Parse

This is tagged with iOS, but I'm sure it could be useful for the other Parse SDKs as well. As you may know, Parse added the ability to create native PFObject subclasses to the iOS SDK not too long ago. This is a great addition for a number of…
JWVincent
  • 11
  • 2