mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-03 12:28:51 +00:00
cache the "startDate"
This commit is contained in:
@@ -30,6 +30,9 @@
|
||||
@class iCalRecurrenceRule;
|
||||
|
||||
@interface iCalTimeZonePeriod : CardGroup
|
||||
{
|
||||
NSCalendarDate *startDate;
|
||||
}
|
||||
|
||||
- (NSCalendarDate *) startDate;
|
||||
- (iCalRecurrenceRule *) recurrenceRule;
|
||||
|
||||
@@ -103,10 +103,21 @@
|
||||
// return dayOfWeek;
|
||||
// }
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[startDate release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (NSCalendarDate *) startDate
|
||||
{
|
||||
return [(iCalDateTime *) [self uniqueChildWithTag: @"dtstart"]
|
||||
dateTime];
|
||||
if (!startDate)
|
||||
{
|
||||
startDate = [(iCalDateTime *) [self uniqueChildWithTag: @"dtstart"]
|
||||
dateTime];
|
||||
[startDate retain];
|
||||
}
|
||||
return startDate;
|
||||
}
|
||||
|
||||
- (iCalRecurrenceRule *) recurrenceRule
|
||||
|
||||
Reference in New Issue
Block a user