PFQuery(Deprecated)

@interface PFQuery (Deprecated)

This category lists all methods of PFQuery that are deprecated and will be removed in the near future.

  • Gets a PFObject asynchronously.

    This mutates the PFQuery. It will reset limit to 1, skip to 0 and remove all conditions, leaving only objectId.

    @deprecated Please use PFQuery.-getObjectInBackgroundWithId:block: instead.

    Declaration

    Objective-C

    - (void)getObjectInBackgroundWithId:(nonnull NSString *)objectId
                                 target:(nullable id)target
                               selector:(nullable SEL)selector;

    Parameters

    objectId

    The id of the object being requested.

    target

    The target for the callback selector.

    selector

    The selector for the callback. It should have the following signature: (void)callbackWithResult:(id)result error:(NSError *)error. Result will be nil if error is set and vice versa.

  • Finds objects asynchronously and calls the given callback with the results.

    @deprecated Please use PFQuery.-findObjectsInBackgroundWithBlock: instead.

    Declaration

    Objective-C

    - (void)findObjectsInBackgroundWithTarget:(nullable id)target
                                     selector:(nullable SEL)selector;

    Parameters

    target

    The object to call the selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(id)result error:(NSError *)error. Result will be nil if error is set and vice versa.

  • Gets an object asynchronously and calls the given callback with the results.

    Warning

    This method mutates the query. It will reset the limit to 1.

    @deprecated Please use PFQuery.-getFirstObjectInBackgroundWithBlock: instead.

    Declaration

    Objective-C

    - (void)getFirstObjectInBackgroundWithTarget:(nullable id)target
                                        selector:(nullable SEL)selector;

    Parameters

    target

    The object to call the selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)result error:(NSError *)error. result will be nil if error is set OR no object was found matching the query. error will be nil if result is set OR if the query succeeded, but found no results.

  • Counts objects asynchronously and calls the given callback with the count.

    @deprecated Please use PFQuery.-countObjectsInBackgroundWithBlock: instead.

    Declaration

    Objective-C

    - (void)countObjectsInBackgroundWithTarget:(nullable id)target
                                      selector:(nullable SEL)selector;

    Parameters

    target

    The object to call the selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error.