Monotone-Parent: 0d0968d53886039e9ee1bfbef5306cf4d2ba3dff

Monotone-Revision: fac57624b130b6ebcb1fe5c327329bb1d90571c8

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-03-02T21:47:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-03-02 21:47:47 +00:00
parent 93f4098d46
commit 00f7b94cbd
3 changed files with 17 additions and 4 deletions
+10
View File
@@ -1,3 +1,13 @@
2009-03-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoComponentOccurence.m
([SOGoComponentOccurence -setComponent:newComponent]): retain the
component's parent instead of the component itself, which is
already retain by its parent anyway. See 2009-02-06 from me below.
([SOGoComponentOccurence -setMasterComponent:newMaster]): no
longer retain the "master" occurence since its parent is already
retained.
2009-03-02 Ludovic Marcotte <lmarcotte@inverse.ca>
* SoObjects/SOGo/SOGoObject.m
@@ -27,6 +27,7 @@
@class NSException;
@class iCalCalendar;
@class iCalRepeatableEntityObject;
@class SOGoCalendarComponent;
@@ -40,6 +41,7 @@
@interface SOGoComponentOccurence : SOGoObject <SOGoComponentOccurence>
{
iCalCalendar *parentCalendar;
iCalRepeatableEntityObject *component;
iCalRepeatableEntityObject *master;
BOOL isNew;
@@ -66,6 +66,7 @@
{
if ((self = [super init]))
{
parentCalendar = nil;
component = nil;
master = nil;
isNew = NO;
@@ -86,8 +87,7 @@
- (void) dealloc
{
[component release];
[master release];
[parentCalendar release];
[super dealloc];
}
@@ -117,12 +117,13 @@
- (void) setComponent: (iCalRepeatableEntityObject *) newComponent
{
ASSIGN (component, newComponent);
component = newComponent;
ASSIGN (parentCalendar, [component parent]);
}
- (void) setMasterComponent: (iCalRepeatableEntityObject *) newMaster
{
ASSIGN (master, newMaster);
master = newMaster;
}
- (NSArray *) aclsForUser: (NSString *) uid