From 23e1afeb21154015540632d99d270af427f857eb Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 4 Aug 2007 20:10:28 -0700 Subject: [PATCH] In NSXMLElementAdditions adding recognizers to the code for certain special value types * Source/NSXMLElementAdditions.m: ([NSXMLElement value]): If the item is a leaf, only display an elipsis, and if it's base64 encoded the decode.. er print that it's base64'd --- Source/NSXMLElementAdditions.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Source/NSXMLElementAdditions.m b/Source/NSXMLElementAdditions.m index 28cfa3c..43eff92 100644 --- a/Source/NSXMLElementAdditions.m +++ b/Source/NSXMLElementAdditions.m @@ -56,6 +56,19 @@ */ - (NSString *)value { + // not a leaf, so don't display any value + if (![self isLeaf]) + { + return @"..."; + } + + // base64 encoded data + if ([[[self attributeForName: @"encoding"] stringValue] isEqualToString: @"base64"]) + { + NSLog(@"base64 encoded %@", [self variable]); + } + + // just a normal string return [self stringValue]; } -- 2.22.5