mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-10 01:13:20 +00:00
Monotone-Parent: 1a5434f30282a4932bf29227da4cf2da44ef5783
Monotone-Revision: ce32e1242b761204db803e0d285c6df7dac31cfb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-14T15:12:38 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
|
||||
#import <NGExtensions/NGCalendarDateRange.h>
|
||||
|
||||
#import "NSCalendarDate+NGCards.h"
|
||||
#import "iCalDateTime.h"
|
||||
#import "iCalRecurrenceRule.h"
|
||||
#import "iCalRecurrenceCalculator.h"
|
||||
#import "iCalRepeatableEntityObject.h"
|
||||
@@ -38,6 +40,8 @@
|
||||
|
||||
if ([classTag isEqualToString: @"RRULE"])
|
||||
tagClass = [iCalRecurrenceRule class];
|
||||
else if ([classTag isEqualToString: @"EXDATE"])
|
||||
tagClass = [iCalDateTime class];
|
||||
else
|
||||
tagClass = [super classForTag: classTag];
|
||||
|
||||
@@ -121,7 +125,21 @@
|
||||
|
||||
- (NSArray *) exceptionDates
|
||||
{
|
||||
return [self childrenWithTag: @"exdate"];
|
||||
NSMutableArray *dates;
|
||||
NSEnumerator *dateList;
|
||||
NSCalendarDate *exDate;
|
||||
NSString *dateString;
|
||||
|
||||
dates = [NSMutableArray array];
|
||||
dateList = [[self childrenWithTag: @"exdate"] objectEnumerator];
|
||||
while ((exDate = [[dateList nextObject] dateTime]))
|
||||
{
|
||||
dateString = [NSString stringWithFormat: @"%@Z",
|
||||
[exDate iCalFormattedDateTimeString]];
|
||||
[dates addObject: dateString];
|
||||
}
|
||||
|
||||
return dates;
|
||||
}
|
||||
|
||||
/* Convenience */
|
||||
|
||||
Reference in New Issue
Block a user