From 074e855a89b3136603cc375722b73f96da674f4c Mon Sep 17 00:00:00 2001 From: znek Date: Wed, 28 Dec 2005 16:23:20 +0000 Subject: [PATCH] trigger debug logging via new default git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1200 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-xml/SaxObjC/ChangeLog | 5 +++++ sope-xml/SaxObjC/SaxObjectDecoder.m | 10 +++++++++- sope-xml/SaxObjC/Version | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/sope-xml/SaxObjC/ChangeLog b/sope-xml/SaxObjC/ChangeLog index a8f58a8c..8cf8501b 100644 --- a/sope-xml/SaxObjC/ChangeLog +++ b/sope-xml/SaxObjC/ChangeLog @@ -1,3 +1,8 @@ +2005-12-27 Marcus Mueller + + * SaxObjectDecoder.m: trigger debug logging via new + SaxObjectDecoderDebugEnabled default (v4.5.54) + 2005-11-25 Helge Hess * SaxMethodCallHandler.m: rewrote tag=>selector mapping function to be diff --git a/sope-xml/SaxObjC/SaxObjectDecoder.m b/sope-xml/SaxObjC/SaxObjectDecoder.m index 4cf0e540..b689e2ca 100644 --- a/sope-xml/SaxObjC/SaxObjectDecoder.m +++ b/sope-xml/SaxObjC/SaxObjectDecoder.m @@ -64,7 +64,15 @@ static BOOL debugOn = NO; static NSNull *null = nil; + (void)initialize { - if (null == nil) null = [[NSNull null] retain]; + static BOOL didInit = NO; + NSUserDefaults *ud; + + if (didInit) return; + didInit = YES; + + null = [[NSNull null] retain]; + ud = [NSUserDefaults standardUserDefaults]; + debugOn = [ud boolForKey:@"SaxObjectDecoderDebugEnabled"]; } - (id)initWithMappingModel:(SaxObjectModel *)_model { diff --git a/sope-xml/SaxObjC/Version b/sope-xml/SaxObjC/Version index d124b50f..5a9103fb 100644 --- a/sope-xml/SaxObjC/Version +++ b/sope-xml/SaxObjC/Version @@ -1,3 +1,3 @@ # version file -SUBMINOR_VERSION:=53 +SUBMINOR_VERSION:=54 -- 2.39.5