Questions tagged [pfsubclassing]

17 questions
7
votes
1 answer

Redundance Conformance of User to Protocol PFSubclassing (Swift 2.0)

I just migrated my Swift 1.2 code to Swift 2.0. This code previously works fine. but now there is an error saying Redundance Conformance of User to Protocol PFSubclassing (Swift 2.0) What might be causing this?
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
6
votes
4 answers

PFSubclassing with array pointer and swift 1.2 - fatal error: NSArray element failed to match the Swift Array Element type

With swift 1.2, I can no longer retrieve an array of poiter with parse subclass and downcasting it with another parse subclass. I always found the error: fatal error: NSArray element failed to match the Swift Array Element type Do you have an idea…
Antoine Lenoir
  • 524
  • 1
  • 3
  • 17
5
votes
2 answers

Subclassing Parse's PFUser in Swift

First off, I know similar questions have been asked before and I've tried following the advice of this stackoverflow answer here to no avail. I also tried adding the basic gist of this as a comment, but I don't have enough rep yet :( Basically I am…
Derek Dowling
  • 479
  • 1
  • 4
  • 15
4
votes
1 answer

Why am I getting the error "the class ... must be registered with registerSubclass before using Parse" when I am registering the subclass?

After upgrading from iOS parse-library-1.6.3 to parse-library 1.7.5, I'm getting the following error in the queryForTable of one of my PFQueryTableViewControllers: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason:…
Greg
  • 33,450
  • 15
  • 93
  • 100
3
votes
5 answers

Parse PFSubclassing not working with Swift

I have copied the Parse Swift example for Subclassing: class Armor : PFObject, PFSubclassing { override class func load() { self.registerSubclass() } class func parseClassName() -> String! { return "Armor" } } I get…
Michael Wildermuth
  • 5,762
  • 3
  • 29
  • 48
2
votes
2 answers

Parse SDK and Swift: Incorrect argument label in call PFObject 'withoutDataWithObjectId'

I subclass PFObject exactly as described here. Then I create a new instance of the subclassed object without data, but since Swift 1.2 I get an error (It did work perfectly before): var test = Armor(withoutDataWithObjectId: "1234567890") -> Xcode…
Christof
  • 61
  • 1
1
vote
0 answers

Parse LiveQuery How do I uses Loadmore , limits

Hi I'm uses ParseLiveQuery and PFSubclassing in Swift 3 My question is limits is not working for me. Here is my PFSubclassing import Foundation import Parse class Post: PFObject, PFSubclassing { @NSManaged var postBy: PFUser? @NSManaged…
Shawn Baek
  • 1,928
  • 3
  • 20
  • 34
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"…
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
0
votes
1 answer

How to check if there is a specific user in PFUser's Pointer Array in Parse Subclass?

My class has a PFUser Pointer Array. I'm trying to check if PFUser.current () in Pointer Array or not. Here is my snippet code. class News: PFObject, PFSubclassing { @NSManaged var notiBy: PFUser? @NSManaged var notiTo: PFUser? …
Shawn Baek
  • 1,928
  • 3
  • 20
  • 34
0
votes
0 answers

Parse.com - PFUser.logInWithUsernameInBackground() hangs

I'm having a problem with some code that I copied almost directly from the Parse docs. I think it is because something in the newer versions of Swift broke the code. The docs say that you can override initialize() in NSObject, but when I do that the…
Michael Rogers
  • 1,318
  • 9
  • 22
0
votes
1 answer

swift cast array of PFObject to Custom PFSubclass

i'm casting an array of pfobject in PFQueryTableViewController, but got an error.. which is the corrent way? override func objectsDidLoad(error: NSError?) { super.objectsDidLoad(error) var totalSeconds: Int = 0 for record in objects…
TheMiloNet
  • 363
  • 2
  • 13
0
votes
1 answer

empty value on cast PFObject to subclass in cellForRowAtIndexPath

i have a problem on cast an PFObject to my Custom class named "Customer" this is swift file for the class @objc class Customer: PFObject, PFSubclassing { @NSManaged var CompanyName: String @NSManaged var City: String @NSManaged var…
TheMiloNet
  • 363
  • 2
  • 13
0
votes
2 answers

How to force asynchronously save a constant subclass?

Edit 1: I've restructured my ViewControllers to make it easier to get what I want done. Edit 2: I realized something major was missing while adding notes to my code, another function overrides the first segue. This ViewController is where the…
0
votes
1 answer

PFObject subclass pointer assignment without prefetching the related PFObject

I'm using PFObject subclassing, say: @interface CarObject : PFObject @property (nonatomic, strong) BrandObject *brand; @end and @interface BrandObject : PFObject @end How can I create CarObject with a reference to…
Miroslav Kuťák
  • 1,875
  • 1
  • 18
  • 24
1
2