SKRequestDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/StoreKit.framework
Availability
Available in OS X v10.7 and later.
Companion guide
Declared in
SKRequest.h

Overview

The SKRequestDelegate protocol declares common methods that are implemented by delegates for any subclass of the SKRequest abstract class.

Tasks

Completing Requests

Handling Errors

Instance Methods

request:didFailWithError:

Called if the request failed to execute.

- (void)request:(SKRequest *)request didFailWithError:(NSError *)error
Parameters
request

The request that failed.

error

The error that caused the request to fail.

Discussion

When the request fails, your application should release the request. The requestDidFinish: method is not called after this method is called.

Availability
  • Available in OS X v10.7 and later.
Declared In
SKRequest.h

requestDidFinish:

Called when the request has completed.

- (void)requestDidFinish:(SKRequest *)request
Parameters
request

The request that completed.

Discussion

This method is called after all processing of the request has been completed. Typically, subclasses of SKRequest require the delegate to implement additional methods to receive the response. When this method is called, your delegate receives no further communication from the request and can release it.

Availability
  • Available in OS X v10.7 and later.
Declared In
SKRequest.h