diff options
Diffstat (limited to 'src/objc/rfc822/MCOMessagePart.mm')
-rw-r--r-- | src/objc/rfc822/MCOMessagePart.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/objc/rfc822/MCOMessagePart.mm b/src/objc/rfc822/MCOMessagePart.mm index 65e091dd..bb6c02cc 100644 --- a/src/objc/rfc822/MCOMessagePart.mm +++ b/src/objc/rfc822/MCOMessagePart.mm @@ -22,6 +22,14 @@ MCORegisterClass(self, &typeid(nativeType)); } +- (id) copyWithZone:(NSZone *)zone +{ + nativeType * nativeObject = (nativeType *) [self mco_mcObject]->copy(); + id result = [[self class] mco_objectWithMCObject:nativeObject]; + MC_SAFE_RELEASE(nativeObject); + return [result retain]; +} + + (id) mco_objectWithMCObject:(mailcore::Object *)object { mailcore::MessagePart * part = (mailcore::MessagePart *) object; |