diff options
Diffstat (limited to 'src/objc/imap/MCOIMAPMultipart.mm')
-rw-r--r-- | src/objc/imap/MCOIMAPMultipart.mm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPMultipart.mm b/src/objc/imap/MCOIMAPMultipart.mm index fdfe4e7a..1cc60e05 100644 --- a/src/objc/imap/MCOIMAPMultipart.mm +++ b/src/objc/imap/MCOIMAPMultipart.mm @@ -22,6 +22,20 @@ MCORegisterClass(self, &typeid(nativeType)); } +- (id) initWithCoder:(NSCoder *)aDecoder { + self = [super initWithCoder:aDecoder]; + + [self setPartID:[aDecoder decodeObjectForKey:@"partID"]]; + + return self; +} + +- (void) encodeWithCoder:(NSCoder *)aCoder +{ + [super encodeWithCoder:aCoder]; + [aCoder encodeObject:[self partID] forKey:@"partID"]; +} + - (id) copyWithZone:(NSZone *)zone { nativeType * nativeObject = (nativeType *) [self mco_mcObject]->copy(); |