PFObject(Deprecated)

@interface PFObject (Deprecated)

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

  • Saves the PFObject asynchronously and calls the given callback.

    @deprecated Please use PFObject.-saveInBackgroundWithBlock: instead.

    Declaration

    Objective-C

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

    Parameters

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.

  • Saves a collection of objects all at once asynchronously and calls a callback when done.

    @deprecated Please use PFObject.+saveAllInBackground:block: instead.

    Declaration

    Objective-C

    + (void)saveAllInBackground:(nullable NSArray<PFObject *> *)objects
                         target:(nullable id)target
                       selector:(nullable SEL)selector;

    Parameters

    objects

    The array of objects to save.

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)number error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.

  • Asynchronously refreshes the PFObject and calls the given callback.

    @deprecated Please use PFObject.-fetchInBackgroundWithBlock: instead.

    Declaration

    Objective-C

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

    Parameters

    target

    The target on which the selector will be called.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)refreshedObject error:(NSError *)error. error will be nil on success and set if there was an error. refreshedObject will be the PFObject with the refreshed data.

  • Fetches the `PFObject asynchronously and calls the given callback.

    @deprecated Please use PFObject.-fetchInBackgroundWithBlock: instead.

    Declaration

    Objective-C

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

    Parameters

    target

    The target on which the selector will be called.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)refreshedObject error:(NSError *)error. error will be nil on success and set if there was an error. refreshedObject will be the PFObject with the refreshed data.

  • Fetches the PFObject’s data asynchronously if dataAvailable is NO, then calls the callback.

    @deprecated Please use PFObject.-fetchIfNeededInBackgroundWithBlock: instead.

    Declaration

    Objective-C

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

    Parameters

    target

    The target on which the selector will be called.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)fetchedObject error:(NSError *)error. error will be nil on success and set if there was an error. refreshedObject will be the PFObject with the refreshed data.

  • Fetches all of the PFObject objects with the current data from the server asynchronously and calls the given callback.

    @deprecated Please use PFObject.+fetchAllInBackground:block: instead.

    Declaration

    Objective-C

    + (void)fetchAllInBackground:(nullable NSArray<PFObject *> *)objects
                          target:(nullable id)target
                        selector:(nullable SEL)selector;

    Parameters

    objects

    The list of objects to fetch.

    target

    The target on which the selector will be called.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSArray *)fetchedObjects error:(NSError *)error. error will be nil on success and set if there was an error. fetchedObjects will the array of PFObject objects that were fetched.

  • Fetches all of the PFObjects with the current data from the server asynchronously and calls the given callback.

    @deprecated Please use PFObject.+fetchAllIfNeededInBackground:block: instead.

    Declaration

    Objective-C

    + (void)fetchAllIfNeededInBackground:(nullable NSArray<PFObject *> *)objects
                                  target:(nullable id)target
                                selector:(nullable SEL)selector;

    Parameters

    objects

    The list of objects to fetch.

    target

    The target on which the selector will be called.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSArray *)fetchedObjects error:(NSError *)error. error will be nil on success and set if there was an error. fetchedObjects will the array of PFObject objects that were fetched.

  • Deletes the PFObject asynchronously and calls the given callback.

    @deprecated Please use PFObject.-deleteInBackgroundWithBlock: instead.

    Declaration

    Objective-C

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

    Parameters

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.

  • Deletes a collection of objects all at once asynchronously and calls a callback when done.

    @deprecated Please use PFObject.+deleteAllInBackground:block: instead.

    Declaration

    Objective-C

    + (void)deleteAllInBackground:(nullable NSArray<PFObject *> *)objects
                           target:(nullable id)target
                         selector:(nullable SEL)selector;

    Parameters

    objects

    The array of objects to delete.

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)number error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.