mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
Monotone-Parent: eacf14246d4dde8712de638d29d8a7cdc77fac45
Monotone-Revision: a225193926236b0f6640bace3c33305ab1184832 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-11T19:21:56 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2008-08-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Appointments/SOGoComponentOccurence.m
|
||||
([SOGoComponentOccurence
|
||||
+occurenceWithComponent:newComponentwithMasterComponent:newMasterinContainer:newContainer]):
|
||||
seconds is now a NSTimeInterval instead of an int, to avoid
|
||||
casting problems on the PowerPC architecture.
|
||||
|
||||
2008-08-10 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/MailPartViewers/UIxMailPartICalViewer.m
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
|
||||
#import <SOGo/SOGoObject.h>
|
||||
|
||||
@class NSException;
|
||||
|
||||
@class iCalRepeatableEntityObject;
|
||||
@class SOGoCalendarComponent;
|
||||
|
||||
@@ -32,7 +34,7 @@
|
||||
|
||||
- (iCalRepeatableEntityObject *) occurence;
|
||||
- (BOOL) isNew;
|
||||
- (id) delete;
|
||||
- (NSException *) delete;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSCalendarDate.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import <NGCards/iCalCalendar.h>
|
||||
@@ -42,7 +43,7 @@
|
||||
inContainer: (SOGoCalendarComponent *) newContainer
|
||||
{
|
||||
SOGoComponentOccurence *occurence;
|
||||
unsigned int seconds;
|
||||
NSTimeInterval seconds;
|
||||
NSString *newName;
|
||||
|
||||
if (newComponent == newMaster)
|
||||
@@ -50,8 +51,8 @@
|
||||
else
|
||||
{
|
||||
seconds = [[newComponent recurrenceId] timeIntervalSince1970];
|
||||
newName = [NSString stringWithFormat: @"occurence%d", seconds];
|
||||
};
|
||||
newName = [NSString stringWithFormat: @"occurence%d", (int) seconds];
|
||||
}
|
||||
occurence = [self objectWithName: newName inContainer: newContainer];
|
||||
[occurence setComponent: newComponent];
|
||||
[occurence setMasterComponent: newMaster];
|
||||
@@ -134,7 +135,7 @@
|
||||
return component;
|
||||
}
|
||||
|
||||
- (id) delete
|
||||
- (NSException *) delete;
|
||||
{
|
||||
NSException *error;
|
||||
iCalCalendar *parent;
|
||||
@@ -155,7 +156,7 @@
|
||||
return error;
|
||||
}
|
||||
|
||||
- (void) saveComponent: (id) newEvent
|
||||
- (void) saveComponent: (iCalRepeatableEntityObject *) newEvent
|
||||
{
|
||||
[container saveComponent: newEvent];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user