mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-27 00:08:52 +08:00
Use instancetype in constructors for increased subclassing friendliness
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
@param responseDescriptors An array of `RKResponseDescriptor` objects specifying how object mapping is to be performed on the response loaded by the network operation.
|
||||
@return The receiver, initialized with the given request and response descriptors.
|
||||
*/
|
||||
- (id)initWithHTTPRequestOperation:(RKHTTPRequestOperation *)requestOperation responseDescriptors:(NSArray *)responseDescriptors;
|
||||
- (instancetype)initWithHTTPRequestOperation:(RKHTTPRequestOperation *)requestOperation responseDescriptors:(NSArray *)responseDescriptors;
|
||||
|
||||
/**
|
||||
Initializes an object request operation with a request object and a set of response descriptors.
|
||||
@@ -87,7 +87,7 @@
|
||||
@param responseDescriptors An array of `RKResponseDescriptor` objects specifying how object mapping is to be performed on the response loaded by the network operation.
|
||||
@return The receiver, initialized with the given request and response descriptors.
|
||||
*/
|
||||
- (id)initWithRequest:(NSURLRequest *)request responseDescriptors:(NSArray *)responseDescriptors;
|
||||
- (instancetype)initWithRequest:(NSURLRequest *)request responseDescriptors:(NSArray *)responseDescriptors;
|
||||
|
||||
///---------------------------------
|
||||
/// @name Configuring Object Mapping
|
||||
|
||||
Reference in New Issue
Block a user