mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
bugfix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15009 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7f474529c5
commit
c58dc97c67
2 changed files with 18 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-11-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSCompatibility.m: Fix for case where a non property list
|
||||
object is found when outputting a description.
|
||||
|
||||
2002-11-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSUserDefaults.m: Fix for getting integer, float and bool
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <config.h>
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <Foundation/NSDebug.h>
|
||||
|
||||
#include "GSPrivate.h"
|
||||
|
||||
|
@ -870,10 +871,18 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
|
|||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Non-property-list class encoded as string");
|
||||
Append(@"<string>", dest);
|
||||
Append([obj description], dest);
|
||||
Append(@"</string>\n", dest);
|
||||
NSDebugLog(@"Non-property-list class (%@) encoded as string",
|
||||
NSStringFromClass([obj class]));
|
||||
if (x == YES)
|
||||
{
|
||||
Append(@"<string>", dest);
|
||||
XString([obj description], dest);
|
||||
Append(@"</string>\n", dest);
|
||||
}
|
||||
else
|
||||
{
|
||||
PString([obj description], dest);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue