diff options
Diffstat (limited to 'src/objc/rfc822')
-rw-r--r-- | src/objc/rfc822/MCOAttachment.h | 2 | ||||
-rw-r--r-- | src/objc/rfc822/MCOAttachment.mm | 8 | ||||
-rw-r--r-- | src/objc/rfc822/MCOMessageParser.h | 2 | ||||
-rw-r--r-- | src/objc/rfc822/MCOMessageParser.mm | 8 | ||||
-rw-r--r-- | src/objc/rfc822/MCOMessagePart.mm | 8 | ||||
-rw-r--r-- | src/objc/rfc822/MCOMultipart.h | 2 | ||||
-rw-r--r-- | src/objc/rfc822/MCOMultipart.mm | 8 |
7 files changed, 3 insertions, 35 deletions
diff --git a/src/objc/rfc822/MCOAttachment.h b/src/objc/rfc822/MCOAttachment.h index 50a2d1a7..560f4590 100644 --- a/src/objc/rfc822/MCOAttachment.h +++ b/src/objc/rfc822/MCOAttachment.h @@ -16,7 +16,7 @@ It can either parsed from RFC 822 message data or created to build a message.*/ -@interface MCOAttachment : MCOAbstractPart <NSCopying> +@interface MCOAttachment : MCOAbstractPart /** Returns a MIME type for a filename.*/ + (NSString *) mimeTypeForFilename:(NSString *)filename; diff --git a/src/objc/rfc822/MCOAttachment.mm b/src/objc/rfc822/MCOAttachment.mm index 423ac0df..5b20e583 100644 --- a/src/objc/rfc822/MCOAttachment.mm +++ b/src/objc/rfc822/MCOAttachment.mm @@ -26,14 +26,6 @@ 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]; -} - + (NSObject *) mco_objectWithMCObject:(mailcore::Object *)object { mailcore::Attachment * attachment = (mailcore::Attachment *) object; diff --git a/src/objc/rfc822/MCOMessageParser.h b/src/objc/rfc822/MCOMessageParser.h index 82613403..5a009bb7 100644 --- a/src/objc/rfc822/MCOMessageParser.h +++ b/src/objc/rfc822/MCOMessageParser.h @@ -20,7 +20,7 @@ @protocol MCOHTMLRendererDelegate; -@interface MCOMessageParser : MCOAbstractMessage <NSCopying> +@interface MCOMessageParser : MCOAbstractMessage /** returns a parsed message from the given RFC 822 data.*/ + (MCOMessageParser *) messageParserWithData:(NSData *)data; diff --git a/src/objc/rfc822/MCOMessageParser.mm b/src/objc/rfc822/MCOMessageParser.mm index 84631430..8e3f1261 100644 --- a/src/objc/rfc822/MCOMessageParser.mm +++ b/src/objc/rfc822/MCOMessageParser.mm @@ -26,14 +26,6 @@ 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::MessageParser * msg = (mailcore::MessageParser *) object; diff --git a/src/objc/rfc822/MCOMessagePart.mm b/src/objc/rfc822/MCOMessagePart.mm index f1535049..4ed4a6d7 100644 --- a/src/objc/rfc822/MCOMessagePart.mm +++ b/src/objc/rfc822/MCOMessagePart.mm @@ -22,14 +22,6 @@ 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; diff --git a/src/objc/rfc822/MCOMultipart.h b/src/objc/rfc822/MCOMultipart.h index e45d4a0c..a730b8a4 100644 --- a/src/objc/rfc822/MCOMultipart.h +++ b/src/objc/rfc822/MCOMultipart.h @@ -14,7 +14,7 @@ /** Multipart parsed from RFC 822 message data. */ -@interface MCOMultipart : MCOAbstractMultipart <NSCopying> +@interface MCOMultipart : MCOAbstractMultipart @end diff --git a/src/objc/rfc822/MCOMultipart.mm b/src/objc/rfc822/MCOMultipart.mm index 2267f775..78fa1a98 100644 --- a/src/objc/rfc822/MCOMultipart.mm +++ b/src/objc/rfc822/MCOMultipart.mm @@ -22,14 +22,6 @@ 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::Attachment * attachment = (mailcore::Attachment *) object; |