Monotone-Parent: 9b75a56ce8daf9300f46778c1489c7a8d55088da

Monotone-Revision: 49aa57834a0704767ffea833b67d08d668dd8cb4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-09-26T18:42:05
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-09-26 18:42:05 +00:00
parent 10705cbe1e
commit d0e10adace
2 changed files with 17 additions and 2 deletions
+13 -2
View File
@@ -38,12 +38,12 @@
/* accessors */
- (void) setCurrentContact: (id <SOGoContactObject>) _contact
- (void) setCurrentContact: (NSDictionary *) _contact
{
currentContact = _contact;
}
- (id <SOGoContactObject>) currentContact
- (NSDictionary *) currentContact
{
return currentContact;
}
@@ -66,6 +66,17 @@
return @"fn";
}
- (NSString *) displayName
{
NSString *displayName;
displayName = [currentContact objectForKey: @"displayName"];
if (!(displayName && [displayName length] > 0))
displayName = [currentContact objectForKey: @"cn"];
return displayName;
}
- (NSString *) sortKey
{
NSString *s;