mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 23:07:12 +00:00
Monotone-Parent: b4d434073c4829245e196a7cbb5d657675d0c67e
Monotone-Revision: 328de23f4c0448aedc1fb6ae6262b7f2d4805837 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-08T19:30:21 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
5e21997cc4
commit
20212d6ba7
2 files changed
+16
-17
No files matched your search
@@ -47,24 +47,21 @@
|
||||
return folder;
|
||||
}
|
||||
|
||||
- (id <SOGoContactFolder>) initWithName: (NSString *) aName
|
||||
andDisplayName: (NSString *) aDisplayName
|
||||
inContainer: (SOGoObject *) aContainer
|
||||
- (void) dealloc
|
||||
{
|
||||
if ((self = [self initWithName: aName
|
||||
inContainer: aContainer]))
|
||||
[self setDisplayName: aDisplayName];
|
||||
|
||||
return self;
|
||||
[displayName release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) setDisplayName: (NSString *) aDisplayName
|
||||
- (id <SOGoContactFolder>) initWithName: (NSString *) newName
|
||||
andDisplayName: (NSString *) newDisplayName
|
||||
inContainer: (SOGoObject *) newContainer
|
||||
{
|
||||
if (displayName)
|
||||
[displayName release];
|
||||
displayName = aDisplayName;
|
||||
if (displayName)
|
||||
[displayName retain];
|
||||
if ((self = [self initWithName: newName
|
||||
inContainer: newContainer]))
|
||||
ASSIGN (displayName, newDisplayName);
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSString *) displayName
|
||||
@@ -156,7 +153,7 @@
|
||||
qualifier = [self _qualifierForFilter: filter];
|
||||
records = [[self ocsFolder] fetchFields: fields
|
||||
matchingQualifier: qualifier];
|
||||
if (records)
|
||||
if ([records count] > 1)
|
||||
{
|
||||
ordering
|
||||
= [EOSortOrdering sortOrderingWithKey: sortKey
|
||||
|
||||
Reference in new issue
Block a user