From b2d1a0346a893701198b9d3b49550b201ce854bf Mon Sep 17 00:00:00 2001 From: ayers Date: Mon, 28 Feb 2005 15:46:11 +0000 Subject: [PATCH] Acually commit the file. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20810 72102866-910b-0410-8b05-ffd578937521 --- Source/NSPropertyList.m | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/Source/NSPropertyList.m b/Source/NSPropertyList.m index 973dac29b..3e8c46ff9 100644 --- a/Source/NSPropertyList.m +++ b/Source/NSPropertyList.m @@ -2002,9 +2002,25 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step, } else { - NSDebugLog(@"Non-property-list class (%@) encoded as string", - NSStringFromClass([obj class])); - PString([obj description], dest); + NSString *desc; + volatile id plobj = nil; + + desc = [obj description]; + NS_DURING + { + plobj = [desc propertyList]; + NSDebugLog(@"Non-property-list class (%@) " + @"encoded as description's property-list", + NSStringFromClass([obj class])); + } + NS_HANDLER + { + plobj = desc; + NSDebugLog(@"Non-property-list class (%@) encoded as string", + NSStringFromClass([obj class])); + } + NS_ENDHANDLER + OAppend(plobj, loc, lev, step, x, dest); } } }