Questions tagged [pfobject]

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

246 questions
13
votes
3 answers

Type arguments cannot be applied to non-parameterized class BFTask in PFAnalytics and PFObject

I've updated my project to iOS 9, my podfile, and all necessary files, but it will not build. The source of my grief is in the following error message: Type arguments cannot be applied to non-parameterized class 'BFTask' This is the only error that…
user2565629
  • 153
  • 1
  • 5
10
votes
2 answers

Save eventually on PFObject with PFFile (Parse Local Datastore)?

Goal I am trying to save a PFObject that has a PFFile as an attribute. I am using the new Local Datastore for iOS, so I would like to save this PFObject with the saveEventually() method. The Problem The problem I am encountering is that the…
dcgoss
  • 2,041
  • 2
  • 17
  • 29
9
votes
1 answer

PFQuery FindObjectsInBackground Returns 0

In my UIViewController I am trying to query my parse server, but I keep getting a return of 0 for it, though I know 100% that this class does have objects in it. Any thoughts? PFQuery *query = [PFQuery queryWithClassName:@"General"]; int i; for…
user717452
  • 3,027
  • 13
  • 72
  • 142
8
votes
4 answers

Swift sort array of dictionaries by key where value is optional AnyObject

I'm pulling an array of dictionaries straight from Parse and displaying them in a table. So I'd really like to work with the data structure I'm handed (the oddly structured dictionaries below). A PFObject is [String : AnyObject?] and I want to be…
Frankie
  • 10,568
  • 2
  • 44
  • 55
7
votes
3 answers

How to prevent Parse from saving PFObject children's?

I'm facing a very common issue with Parse and iOS. I have a class POST with the following structure: text(String) Image (PFFile) LikesUsers (Array of String) LikesCount (Int) From (Pointer to User who posted it) and if the user (already logged…
Stranger B.
  • 7,456
  • 21
  • 60
  • 101
7
votes
1 answer

parse.com invalid type for key, expected string, but got array

I try to save my data to parse.com. I have already pre-made a class in parse.com named 'SomeClass'. This has a column named 'mySpecialColumn' with a datatype of String. This is the code I try to save data with: var groupObject = PFObject(className:…
TommyF
  • 355
  • 1
  • 5
  • 22
5
votes
0 answers

Parse iOS Unit Testing a subclass of PFUser

I'm trying to unit test (with XCTest) a subclass of a subclass of PFObject but am getting the warnings for all such subclasses that are part of the testing target: Class MySubclassOfSubclassOfPFObject is implemented in both…
kcmoffat
  • 383
  • 2
  • 8
5
votes
1 answer

Parse: Issue with PFRelation and local datastore

I'm building a chat application with Parse. I have a class "Conversation" and a class "Message". A Conversation can have many messages (one-to-many) relationship. Also, I'm using the local datastore to cache the objects (both Conversation and…
4
votes
0 answers

iOS Multiple save of parse objects with progress bar

I found this very interesting approach (Parse : is it possible to follow progress of PFObject upload) and I tried to convert the objective-c category in a swift extension. But I am overstrained with the values types unsigned long. Please have a look…
myknack
  • 81
  • 8
4
votes
1 answer

Using JSQMessagesViewController with Parse.com

I came across what looks to be a very complex and customize library that would be pretty useful for any app that wants to have a messaging system built in. JSQMessagesViewController on Github. While I was trying to implement the library on my own I…
kygcoleman
  • 724
  • 14
  • 25
4
votes
2 answers

Store PFUser Object in a PFUser key results in a Crash

I've been trying to figure out what I'm doing wrong for about a whole day now, but I have absolutely no idea why the App always crashes. The situation is the following: I've set up a Simple Project with all the required Libraries and Frameworks…
Nico
  • 41
  • 4
3
votes
1 answer

Can't fetch parse file from PFObject

Trying to fetch a PFfile from PfObject but when I fetch value of a particular key , it only gives me a class name Here is my CloudCode Parse.Cloud.define("fetchBusinessWithID", function(request, response) { var query = new…
Vikas
  • 836
  • 7
  • 18
3
votes
1 answer

Swift, Parse and Xcode 6 beta6

My query to Parse now raises a swift compiler error in Xcode 6 beta6 (see error below). It was working fine previously (and my example is simple, and comes from Parse's documentation). I've changed one thing coming from Xcode 6 beta 6: from…
2
votes
1 answer

Custom PFQuery and PFObject Connection in Swift 2.0

I've created a Custom class for both PFQuery and PFObject, where I just Inherit/extend with those classes to not having to worry about importing Parse everywhere I use a Query or an Object. However, I've encountered a problem when trying to mix…
Kevin Jensen Petersen
  • 323
  • 1
  • 17
  • 39
2
votes
1 answer

How do I save a MKPointAnnotation to Pars?

How do I save on Parse a MKPointAnnotation that I created? @IBAction func salvaRicordo(sender: AnyObject) { let puntoRicordo = MKPointAnnotation() puntoRicordo.coordinate = posizioneUtente puntoRicordo.title = nomeField.text …
1
2 3
16 17