diff --git a/ChangeLog b/ChangeLog index 6d00304c2..75e6f0ec3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-08-11 Wolfgang Sourdeau + + * 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 * UI/MailPartViewers/UIxMailPartICalViewer.m diff --git a/SoObjects/Appointments/SOGoComponentOccurence.h b/SoObjects/Appointments/SOGoComponentOccurence.h index f511e673c..24854a578 100644 --- a/SoObjects/Appointments/SOGoComponentOccurence.h +++ b/SoObjects/Appointments/SOGoComponentOccurence.h @@ -25,6 +25,8 @@ #import +@class NSException; + @class iCalRepeatableEntityObject; @class SOGoCalendarComponent; @@ -32,7 +34,7 @@ - (iCalRepeatableEntityObject *) occurence; - (BOOL) isNew; -- (id) delete; +- (NSException *) delete; @end diff --git a/SoObjects/Appointments/SOGoComponentOccurence.m b/SoObjects/Appointments/SOGoComponentOccurence.m index 244b2a0b4..539eb0285 100644 --- a/SoObjects/Appointments/SOGoComponentOccurence.m +++ b/SoObjects/Appointments/SOGoComponentOccurence.m @@ -21,6 +21,7 @@ */ #import +#import #import #import @@ -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]; }