mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Onlylog warnings about non-pl objects in new-style plists
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15161 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
50324c7db1
commit
21f30af6e2
1 changed files with 8 additions and 2 deletions
|
@ -894,14 +894,20 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
|
|||
}
|
||||
else
|
||||
{
|
||||
NSDebugLog(@"Non-property-list class (%@) encoded as string",
|
||||
NSStringFromClass([obj class]));
|
||||
if (x == PLXML)
|
||||
{
|
||||
NSDebugLog(@"Non-property-list class (%@) encoded as string",
|
||||
NSStringFromClass([obj class]));
|
||||
Append(@"<string>", dest);
|
||||
XString([obj description], dest);
|
||||
Append(@"</string>\n", dest);
|
||||
}
|
||||
else if (x == PLNEW)
|
||||
{
|
||||
NSDebugLog(@"Non-property-list class (%@) encoded as string",
|
||||
NSStringFromClass([obj class]));
|
||||
Append([obj description], dest);
|
||||
}
|
||||
else
|
||||
{
|
||||
Append([obj description], dest);
|
||||
|
|
Loading…
Reference in a new issue