From c57d507f6bbab6f8993634cdac40dd1530023244 Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 20 Jul 2005 14:40:38 +0000 Subject: [PATCH] added fragile base class checks git-svn-id: http://svn.opengroupware.org/SOGo/trunk@850 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/SOGoUI/ChangeLog | 4 ++++ SOGo/UI/SOGoUI/UIxComponent.m | 10 +++++++++- SOGo/UI/SOGoUI/Version | 2 +- SOGo/UI/Scheduler/ChangeLog | 2 ++ SOGo/UI/Scheduler/UIxAppointmentEditor.m | 10 ++++++++++ SOGo/UI/Scheduler/Version | 2 +- 6 files changed, 27 insertions(+), 3 deletions(-) diff --git a/SOGo/UI/SOGoUI/ChangeLog b/SOGo/UI/SOGoUI/ChangeLog index 7eb34548..bff7b07e 100644 --- a/SOGo/UI/SOGoUI/ChangeLog +++ b/SOGo/UI/SOGoUI/ChangeLog @@ -1,3 +1,7 @@ +2005-07-20 Helge Hess + + * UIxComponent.m: added fragile base class check (v0.9.33) + 2005-07-20 Marcus Mueller * UIxComponent.m: changed language lookup to meet the status quo diff --git a/SOGo/UI/SOGoUI/UIxComponent.m b/SOGo/UI/SOGoUI/UIxComponent.m index 29bd0708..52225b49 100644 --- a/SOGo/UI/SOGoUI/UIxComponent.m +++ b/SOGo/UI/SOGoUI/UIxComponent.m @@ -41,9 +41,17 @@ static NSMutableArray *abbrMonthLabelKeys = nil; static BOOL uixDebugEnabled = NO; ++ (int)version { + return [super version] + 0 /* v2 */; +} + + (void)initialize { NSUserDefaults *ud = [NSUserDefaults standardUserDefaults]; - + + NSAssert2([super version] == 2, + @"invalid superclass (%@) version %i !", + NSStringFromClass([self superclass]), [super version]); + uixDebugEnabled = [ud boolForKey:@"SOGoUIxDebugEnabled"]; if (MET == nil) { diff --git a/SOGo/UI/SOGoUI/Version b/SOGo/UI/SOGoUI/Version index 9aa7948b..e941cf12 100644 --- a/SOGo/UI/SOGoUI/Version +++ b/SOGo/UI/SOGoUI/Version @@ -1,5 +1,5 @@ # version file -SUBMINOR_VERSION:=32 +SUBMINOR_VERSION:=33 # v0.9.18 requires NGExtensions v4.5.136 diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index 17694ca4..49dbb8f0 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,5 +1,7 @@ 2005-07-20 Helge Hess + * UIxAppointmentEditor.m: added fragile base class check (v0.9.143) + * added a basic German translation (v0.9.142) 2005-07-19 Helge Hess diff --git a/SOGo/UI/Scheduler/UIxAppointmentEditor.m b/SOGo/UI/Scheduler/UIxAppointmentEditor.m index 3b44c9da..d0a12451 100644 --- a/SOGo/UI/Scheduler/UIxAppointmentEditor.m +++ b/SOGo/UI/Scheduler/UIxAppointmentEditor.m @@ -108,6 +108,16 @@ @implementation UIxAppointmentEditor ++ (int)version { + return [super version] + 0 /* v2 */; +} + ++ (void)initialize { + NSAssert2([super version] == 2, + @"invalid superclass (%@) version %i !", + NSStringFromClass([self superclass]), [super version]); +} + - (id)init { self = [super init]; if(self) { diff --git a/SOGo/UI/Scheduler/Version b/SOGo/UI/Scheduler/Version index 73f4042b..37038f62 100644 --- a/SOGo/UI/Scheduler/Version +++ b/SOGo/UI/Scheduler/Version @@ -1,6 +1,6 @@ # Version file -SUBMINOR_VERSION:=142 +SUBMINOR_VERSION:=143 # v0.9.136 requires SOGoUI v0.9.30 # v0.9.123 requires Appointments v0.9.35 -- 2.39.5