mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-12 11:11:34 +08:00
Add support for parameterizing NSSet. refs #1010
This commit is contained in:
@@ -111,6 +111,9 @@
|
||||
} else if ([value isKindOfClass:[NSDecimalNumber class]]) {
|
||||
// Precision numbers are serialized as strings to work around Javascript notation limits
|
||||
transformedValue = [(NSDecimalNumber *)value stringValue];
|
||||
} else if ([value isKindOfClass:[NSSet class]]) {
|
||||
// NSSets are not natively serializable, so let's just turn it into an NSArray
|
||||
transformedValue = [value allObjects];
|
||||
} else if ([value isKindOfClass:[NSOrderedSet class]]) {
|
||||
// NSOrderedSets are not natively serializable, so let's just turn it into an NSArray
|
||||
transformedValue = [value array];
|
||||
|
||||
Reference in New Issue
Block a user