From 912cc2fe9a1cc803d78569e367bdcdc3235a812b Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 13 Sep 2006 21:27:28 +0000 Subject: [PATCH] Monotone-Parent: 5d6117b540c7cfaeb6237176d146febccadfbf42 Monotone-Revision: 5426285a5c4220db81e2574ef6be30f2249cdecb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-13T21:27:28 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 8 +++++++- SoObjects/Contacts/SOGoContactGCSEntry.m | 22 +++++++++++++++++----- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1a5deaa47..e8fb8b293 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,15 @@ 2006-09-13 Wolfgang Sourdeau + * SoObjects/Contacts/SOGoContactGCSEntry.m ([SOGoContactGCSEntry + -vCard]): create a new NGVCard instance when no data is available + and retain it. + ([SOGoContactGCSEntry -save]): save the vCard using the new + "versitString" API method/message. + * UI/Contacts/UIxContactView.h: separated interface from UIxContactView.m. - * UI/WebServerResources/ContactsUI.js: added code to download card + * UI/WebServerResources/ContactsUI.js: add-ed code to download card views and display them beneath the list. 2006-09-08 Wolfgang Sourdeau diff --git a/SoObjects/Contacts/SOGoContactGCSEntry.m b/SoObjects/Contacts/SOGoContactGCSEntry.m index 265804443..13a8541f7 100644 --- a/SoObjects/Contacts/SOGoContactGCSEntry.m +++ b/SoObjects/Contacts/SOGoContactGCSEntry.m @@ -22,9 +22,7 @@ #import #import -#import - -#import "NGVCard+Contact.h" +#import #import "SOGoContactGCSEntry.h" @@ -40,6 +38,13 @@ return self; } +- (void) dealloc +{ + if (card) + [card release]; + [super dealloc]; +} + /* content */ - (NGVCard *) vCard @@ -54,8 +59,15 @@ { cards = [NGVCard parseVCardsFromSource: contentStr]; if ([cards count] > 0) - card = [cards objectAtIndex: 0]; + { + card = [cards objectAtIndex: 0]; + [card retain]; + } + else + card = [NGVCard new]; } + else + card = [NGVCard new]; } return card; @@ -76,7 +88,7 @@ vcard = [self vCard]; - return [self saveContentString: [vcard asString]]; + return [self saveContentString: [vcard versitString]]; } /* message type */