mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-27 06:15:26 +00:00
Monotone-Parent: 648006b4eaaf4d9129f55629de21c0cfb36a0e58
Monotone-Revision: 50485da98a8b2535a5e2511ba4e1bd8025373815 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-12-19T17:03:41 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -401,6 +401,7 @@ static NSTimeZone *serverTimeZone = nil;
|
||||
container =
|
||||
[self doesRetainContainer] ? [_container retain] : _container;
|
||||
userTimeZone = nil;
|
||||
customOwner = nil;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@@ -410,6 +411,8 @@ static NSTimeZone *serverTimeZone = nil;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
if (customOwner)
|
||||
[customOwner release];
|
||||
if ([self doesRetainContainer])
|
||||
[container release];
|
||||
if (userTimeZone)
|
||||
@@ -429,8 +432,15 @@ static NSTimeZone *serverTimeZone = nil;
|
||||
|
||||
/* ownership */
|
||||
|
||||
- (void) setOwner: (NSString *) newOwner
|
||||
{
|
||||
ASSIGN (customOwner, newOwner);
|
||||
}
|
||||
|
||||
- (NSString *)ownerInContext:(id)_ctx {
|
||||
return [[self container] ownerInContext:_ctx];
|
||||
return ((customOwner)
|
||||
? customOwner
|
||||
: [[self container] ownerInContext:_ctx]);
|
||||
}
|
||||
|
||||
/* hierarchy */
|
||||
|
||||
Reference in New Issue
Block a user