Monotone-Parent: 2e091eebec7082ccae481171b67c0091e367dcb1

Monotone-Revision: 188f677989080c34ae076500016b9830247f2cbe

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-21T17:43:36
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-08-21 17:43:36 +00:00
parent 2acc3ed007
commit b1a76aa21a
4 changed files with 24 additions and 12 deletions
+9
View File
@@ -1,3 +1,12 @@
2006-08-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
+objectWithName:inContainer:]): new constructor.
* SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
-lookupContactWithId:recordId]): always create a contact object,
even if it does not exist.
2006-08-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Scheduler/UIxCalMainView.[hm]: new class to serve as a pseudo
+2 -12
View File
@@ -77,20 +77,10 @@
- (id <SOGoContactObject>) lookupContactWithId: (NSString *) recordId
{
SOGoContactGCSEntry *contact;
NSArray *contactIds;
if ([recordId length] > 0)
{
contactIds = [self fetchContentObjectNames];
if ([contactIds containsObject: recordId])
{
contact = [[SOGoContactGCSEntry alloc] initWithName: recordId
inContainer: self];
[contact autorelease];
}
else
contact = nil;
}
contact = [SOGoContactGCSEntry objectWithName: recordId
inContainer: self];
else
contact = nil;
+2
View File
@@ -44,6 +44,8 @@
id container;
}
+ (id) objectWithName: (NSString *)_name inContainer:(id)_container;
- (id)initWithName:(NSString *)_name inContainer:(id)_container;
/* accessors */
+11
View File
@@ -60,6 +60,16 @@ static BOOL kontactGroupDAV = YES;
/* containment */
+ (id) objectWithName: (NSString *)_name inContainer:(id)_container
{
SOGoObject *object;
object = [[self alloc] initWithName: _name inContainer: _container];
[object autorelease];
return object;
}
- (BOOL)doesRetainContainer {
return YES;
}
@@ -72,6 +82,7 @@ static BOOL kontactGroupDAV = YES;
}
return self;
}
- (id)init {
return [self initWithName:nil inContainer:nil];
}