From 63ccf073b401791ec17db9ace348008df1907afb Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 27 Apr 2007 19:03:33 +0000 Subject: [PATCH] Monotone-Parent: d75f311111aa7cbdf9ecf2de1168ceb2651e77bd Monotone-Revision: c15520706f33ccebb112c1becc433bfe47acd1ee Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-04-27T19:03:33 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ SoObjects/SOGo/SOGoObject.m | 29 +++++++++++++++++++---------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index bec63b6db..eb6879358 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-04-27 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoObject.m ([SOGoObject -init]): do not invoke + initWithName:inContainer:. Instead, directly initialize the ivars + as it is supposed to be to avoid an infinite loop whenever one of + those two methods are overriden. + * SoObjects/SOGo/SOGoContentObject.m ([-rolesOfUser:login]): removed method. diff --git a/SoObjects/SOGo/SOGoObject.m b/SoObjects/SOGo/SOGoObject.m index 0a483e289..fff695fc1 100644 --- a/SoObjects/SOGo/SOGoObject.m +++ b/SoObjects/SOGo/SOGoObject.m @@ -382,19 +382,28 @@ static BOOL kontactGroupDAV = YES; } - (id)initWithName:(NSString *)_name inContainer:(id)_container { - if ((self = [super init])) { - context = [[WOApplication application] context]; - [context retain]; - nameInContainer = [_name copy]; - container = - [self doesRetainContainer] ? [_container retain] : _container; - customOwner = nil; - } + if ((self = [self init])) + { + context = [[WOApplication application] context]; + [context retain]; + nameInContainer = [_name copy]; + container = + [self doesRetainContainer] ? [_container retain] : _container; + customOwner = nil; + } + return self; } -- (id)init { - return [self initWithName:nil inContainer:nil]; +- (id) init +{ + if ((self = [super init])) + { + nameInContainer = nil; + container = nil; + } + + return self; } - (void)dealloc {