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.
Instance Methods
request:didFailWithError:
Called if the request failed to execute.
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.hrequestDidFinish:
Called when the request has completed.
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© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-06-06)