applied changes from 59d4ff7e6c2fe24e74adbe4891af30ece4f5e858

through c05e0091913ed81140571dab045abdaf56a77ef8

Monotone-Parent: 850fd7677033b28a7218a010f55b437ebd12f665
Monotone-Revision: eb1f58bb7bd3454ffc857750264fae0b27b86d32

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-11-14T16:07:04
This commit is contained in:
Francis Lachapelle
2011-11-14 16:07:04 +00:00
parent 7df673abb8
commit 63e0b0e116
53 changed files with 1314 additions and 942 deletions
@@ -27,10 +27,12 @@
#import <Foundation/NSTimeZone.h>
#import <NGCards/iCalDateTime.h>
#import <NGCards/iCalEvent.h>
#import <NGCards/iCalRecurrenceRule.h>
#import <NGCards/iCalRecurrenceCalculator.h>
#import <NGCards/iCalTimeZone.h>
#import <NGCards/NSString+NGCards.h>
#import <NGCards/NSDictionary+NGCards.h>
#import <NGExtensions/NGCalendarDateRange.h>
#import "iCalRepeatableEntityObject+SOGo.h"
@@ -40,10 +42,12 @@
- (NSArray *) _indexedRules: (NSArray *) rules
{
NSMutableArray *ma;
unsigned int i, count;
NSString *valuesString;
NSUInteger i, count;
NSMutableString *ruleString;
iCalRecurrenceRule *rule;
#warning we could return an NSArray instead and feed it as such to the iCalRecurrenceRule in SOGoAppointmentFolder...
ma = nil;
count = [rules count];
@@ -53,9 +57,11 @@
for (i = 0; i < count; i++)
{
rule = [rules objectAtIndex:i];
#warning we could return an NSArray instead and feed it as such to the iCalRecurrenceRule in SOGoAppointmentFolder...
valuesString = [[rule values] componentsJoinedByString: @";"];
[ma addObject: valuesString];
ruleString = [NSMutableString new];
[[rule values] versitRenderInString: ruleString
asAttributes: NO];
[ma addObject: ruleString];
[ruleString release];
}
}
@@ -138,7 +144,7 @@
else
{
startDate = theOccurenceDate;
if ([self isAllDay])
if ([self isKindOfClass: [iCalEvent class]] && [(iCalEvent *) self isAllDay])
{
// The event lasts all-day and has no timezone (floating); we convert the range of the first event
// to the occurence's timezone.