PFFile(Deprecated)

@interface PFFile (Deprecated)

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

  • Saves the file asynchronously and invokes the given selector on a target.

    @deprecated Please use PFFile.-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.

  • Asynchronously gets the data from cache if available or fetches its contents from the network.

    @deprecated Please use PFFile.-getDataInBackgroundWithBlock: instead.

    Declaration

    Objective-C

    - (void)getDataInBackgroundWithTarget:(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:(NSData *)result error:(NSError *)error. error will be nil on success and set if there was an error.