// // MCOMultipart.m // mailcore2 // // Created by DINH Viêt Hoà on 3/22/13. // Copyright (c) 2013 MailCore. All rights reserved. // #import "MCOMultipart.h" #include "MCRFC822.h" #import "NSObject+MCO.h" @implementation MCOMultipart #define nativeType mailcore::Multipart + (void) load { MCORegisterClass(self, &typeid(nativeType)); } + (id) mco_objectWithMCObject:(mailcore::Object *)object { mailcore::Attachment * attachment = (mailcore::Attachment *) object; return [[[self alloc] initWithMCPart:attachment] autorelease]; } @end