Use copy for value properties on response descriptor

This commit is contained in:
Blake Watters
2012-08-24 09:22:59 -04:00
parent 7791604763
commit 3d5d42bd1f
2 changed files with 7 additions and 6 deletions

View File

@@ -18,6 +18,7 @@
// limitations under the License.
//
@class RKMapping;
/**
An RKResponseDescriptor object describes an object mapping configuration
@@ -26,9 +27,9 @@
@interface RKResponseDescriptor : NSObject
@property (nonatomic, strong, readonly) RKMapping *mapping; // required
@property (nonatomic, strong, readonly) NSString *pathPattern; // can be nil
@property (nonatomic, strong, readonly) NSString *keyPath; // can be nil
@property (nonatomic, strong, readonly) NSIndexSet *statusCodes; // can be nil
@property (nonatomic, copy, readonly) NSString *pathPattern; // can be nil
@property (nonatomic, copy, readonly) NSString *keyPath; // can be nil
@property (nonatomic, copy, readonly) NSIndexSet *statusCodes; // can be nil
+ (RKResponseDescriptor *)responseDescriptorWithMapping:(RKMapping *)mapping
pathPattern:(NSString *)pathPattern

View File

@@ -54,9 +54,9 @@ static NSString * RKStringFromIndexSet(NSIndexSet *indexSet) {
@interface RKResponseDescriptor ()
@property (nonatomic, strong, readwrite) RKMapping *mapping;
@property (nonatomic, strong, readwrite) NSString *pathPattern;
@property (nonatomic, strong, readwrite) NSString *keyPath;
@property (nonatomic, strong, readwrite) NSIndexSet *statusCodes;
@property (nonatomic, copy, readwrite) NSString *pathPattern;
@property (nonatomic, copy, readwrite) NSString *keyPath;
@property (nonatomic, copy, readwrite) NSIndexSet *statusCodes;
@end
@implementation RKResponseDescriptor