Monotone-Parent: 052f9de55b5ccfe5944c8d715ee190708be0140e

Monotone-Revision: 8268efeb15753e2949b09378244938f0b6bb08a8

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-09-29T18:26:29
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-09-29 18:26:29 +00:00
parent 49f320e49f
commit 7d81972309
5 changed files with 28 additions and 49 deletions
+6 -10
View File
@@ -49,7 +49,6 @@
- (NGVCard *) vCard
{
NSArray *cards;
NSString *contentStr;
if (!card)
@@ -57,17 +56,14 @@
contentStr = [self contentAsString];
if ([contentStr hasPrefix:@"BEGIN:VCARD"])
{
cards = [NGVCard parseVCardsFromSource: contentStr];
if ([cards count] > 0)
{
card = [cards objectAtIndex: 0];
[card retain];
}
else
card = [NGVCard new];
card = [NGVCard parseSingleFromSource: contentStr];
[card retain];
}
else
card = [NGVCard new];
{
card = [NGVCard new];
[card setTag: @"vcard"];
}
}
return card;