mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@
|
||||
id container;
|
||||
}
|
||||
|
||||
+ (id) objectWithName: (NSString *)_name inContainer:(id)_container;
|
||||
|
||||
- (id)initWithName:(NSString *)_name inContainer:(id)_container;
|
||||
|
||||
/* accessors */
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user