diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-05-09 15:05:07 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-05-09 15:05:07 -0400 |
commit | 9c488eed9a2cf8d7cbe53a4f17005f97f3841d3a (patch) | |
tree | 7c8c76c7e2624fe0b01e57ee9b37745e06b5b81e | |
parent | a9a1587ce8e2edce8b4f6c4d37a72e02b1955e82 (diff) | |
download | sdl_ios-9c488eed9a2cf8d7cbe53a4f17005f97f3841d3a.tar.gz |
SDLRPCStructs print correctly
* Fixes #355
-rw-r--r-- | SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m index 86c352f1d..a359fe7a3 100644 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m +++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m @@ -38,7 +38,7 @@ [ret setObject:[self serializeDictionary:(NSDictionary *)value version:version] forKey:key]; } else if ([value isKindOfClass:NSArray.class]) { NSArray *arrayVal = (NSArray *)value; - + if (arrayVal.count > 0 && ([[arrayVal objectAtIndex:0] isKindOfClass:SDLRPCStruct.class])) { NSMutableArray *serializedList = [NSMutableArray arrayWithCapacity:arrayVal.count]; for (SDLRPCStruct *serializeable in arrayVal) { @@ -79,7 +79,7 @@ } - (NSString *)description { - return [NSString stringWithFormat:@"RPC Struct (%@) %@", [self class], [store description]]; + return [store description]; } - (void)dealloc { |