Monotone-Parent: ba9e6391ee9c1e0fe0680835dcc1e917cea277fb

Monotone-Revision: 0f7a7062f9e521fc44b55467166775907a3e3668

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-10-30T17:24:59
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-10-30 17:24:59 +00:00
parent de698e6a1a
commit 040e7dda38

View File

@@ -50,15 +50,15 @@
@implementation UIxMailPartAlternativeViewer
- (void)dealloc {
[self->childInfo release];
[childInfo release];
[super dealloc];
}
/* caches */
- (void)resetBodyInfoCaches {
[self->childInfo release]; self->childInfo = nil;
self->childIndex = 0;
[childInfo release]; childInfo = nil;
childIndex = 0;
[super resetBodyInfoCaches];
}
@@ -110,8 +110,8 @@
- (void)selectChildInfo {
unsigned idx;
[self->childInfo release]; self->childInfo = nil;
self->childIndex = 0;
[childInfo release]; childInfo = nil;
childIndex = 0;
idx = [self selectPartIndexFromTypes:[self childPartTypes]];
if (idx == NSNotFound) {
@@ -120,25 +120,25 @@
return;
}
self->childIndex = idx + 1;
self->childInfo =
childIndex = idx + 1;
childInfo =
[[[[self bodyInfo] valueForKey:@"parts"] objectAtIndex:idx] retain];
}
/* accessors */
- (id)childInfo {
if (self->childInfo == nil)
if (childInfo == nil)
[self selectChildInfo];
return self->childInfo;
return childInfo;
}
- (unsigned int)childIndex {
if (self->childIndex == 0)
if (childIndex == 0)
[self selectChildInfo];
return self->childIndex - 1;
return childIndex - 1;
}
- (NSString *)childPartName {