mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-25 08:02:44 +00:00
Monotone-Parent: eb165ac64bb67362d5ea6d43b6f390aeb1efe013
Monotone-Revision: 4254b3aaa317d0b5f76c8d289e790123b2d1ae94 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-03T15:59:45 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
2007-07-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalRecurrenceRule.m ([iCalRecurrenceRule
|
||||
+recurrenceRuleWithICalRepresentation:_iCalRep]): the
|
||||
representation is generally a series of values separated by a ";".
|
||||
Therefore we need to split those values and feed them one by one.
|
||||
|
||||
* CardElement.m ([CardElement -versitString]): remove the ending
|
||||
"\r\n".
|
||||
|
||||
|
||||
@@ -71,7 +71,13 @@
|
||||
|
||||
+ (id) recurrenceRuleWithICalRepresentation: (NSString *) _iCalRep
|
||||
{
|
||||
return [self simpleElementWithTag: @"rrule" value: _iCalRep];
|
||||
iCalRecurrenceRule *rule;
|
||||
|
||||
rule = [self elementWithTag: @"rrule"];
|
||||
if ([_iCalRep length] > 0)
|
||||
[rule addValues: [_iCalRep componentsSeparatedByString: @";"]];
|
||||
|
||||
return rule;
|
||||
}
|
||||
|
||||
- (id) init
|
||||
@@ -289,7 +295,7 @@
|
||||
return mask;
|
||||
}
|
||||
|
||||
#warning this is fucked up
|
||||
#warning this is bad
|
||||
- (int) byDayOccurence1
|
||||
{
|
||||
return 0;
|
||||
@@ -329,11 +335,12 @@
|
||||
if (c1 == 'u' || c1 == 'U') return iCalWeekDaySunday;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: do not raise but rather return an error value?
|
||||
[NSException raise:NSGenericException
|
||||
format:@"Incorrect weekDay '%@' specified!", _day];
|
||||
return iCalWeekDayMonday; /* keep compiler happy */
|
||||
|
||||
return -1;
|
||||
// // TODO: do not raise but rather return an error value?
|
||||
// [NSException raise:NSGenericException
|
||||
// format:@"Incorrect weekDay '%@' specified!", _day];
|
||||
// return iCalWeekDayMonday; /* keep compiler happy */
|
||||
}
|
||||
|
||||
- (NSString *) iCalRepresentationForWeekDay: (iCalWeekDay) _weekDay
|
||||
|
||||
Reference in New Issue
Block a user