mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-12 02:13:18 +00:00
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:
@@ -1,5 +1,9 @@
|
||||
2006-09-26 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Contacts/UIxContactsListViewBase.m ([UIxContactsListViewBase
|
||||
-displayName]): new method that returns the display name from "cn"
|
||||
or from the "displayName" key if found.
|
||||
|
||||
* UI/Contacts/UIxContactEditor.m ([UIxContactEditor
|
||||
-initSnapshot]): check if "[card n]" returns anything to avoid a
|
||||
crash.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user