diff options
author | Robert Widmann <devteam.codafi@gmail.com> | 2013-07-02 22:30:56 -0600 |
---|---|---|
committer | Robert Widmann <devteam.codafi@gmail.com> | 2013-07-02 22:30:56 -0600 |
commit | dca43ec24d6e9605fbc20729c2fe62a12d6d67e7 (patch) | |
tree | 930e59a82cf788cb015873ebeda1ea7cfa3b56e3 /src | |
parent | 1968d5c3dc9f510e3886df14a6796697673289cf (diff) |
No more nscoding
Diffstat (limited to 'src')
-rw-r--r-- | src/objc/abstract/MCOAddress.h | 2 | ||||
-rw-r--r-- | src/objc/abstract/MCOAddress.mm | 16 | ||||
-rw-r--r-- | src/objc/abstract/MCOMessageHeader.h | 2 | ||||
-rw-r--r-- | src/objc/imap/MCOIMAPFolder.h | 2 | ||||
-rw-r--r-- | src/objc/imap/MCOIMAPFolder.mm | 18 |
5 files changed, 3 insertions, 37 deletions
diff --git a/src/objc/abstract/MCOAddress.h b/src/objc/abstract/MCOAddress.h index 49c17a5a..8e409589 100644 --- a/src/objc/abstract/MCOAddress.h +++ b/src/objc/abstract/MCOAddress.h @@ -12,7 +12,7 @@ #import <Foundation/Foundation.h> -@interface MCOAddress : NSObject <NSCopying, NSCoding> +@interface MCOAddress : NSObject <NSCopying> /** Creates an address with a display name and a mailbox. diff --git a/src/objc/abstract/MCOAddress.mm b/src/objc/abstract/MCOAddress.mm index fc724d77..1cb37e62 100644 --- a/src/objc/abstract/MCOAddress.mm +++ b/src/objc/abstract/MCOAddress.mm @@ -113,22 +113,6 @@ return self; } -- (id)initWithCoder:(NSCoder *)coder -{ - self = [self init]; - - [self setDisplayName:[coder decodeObjectForKey:@"displayName"]]; - [self setMailbox:[coder decodeObjectForKey:@"mailbox"]]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)encoder -{ - [encoder encodeObject:[self displayName] forKey:@"displayName"]; - [encoder encodeObject:[self mailbox] forKey:@"mailbox"]; -} - + (MCOAddress *) addressWithMCAddress:(mailcore::Address *)address { if (address == NULL) diff --git a/src/objc/abstract/MCOMessageHeader.h b/src/objc/abstract/MCOMessageHeader.h index 3e891ef3..6e8eb9bf 100644 --- a/src/objc/abstract/MCOMessageHeader.h +++ b/src/objc/abstract/MCOMessageHeader.h @@ -16,7 +16,7 @@ @class MCOAddress; -@interface MCOMessageHeader : NSObject <NSCoding, NSCopying> +@interface MCOMessageHeader : NSObject <NSCopying> /** Message-ID field.*/ @property (nonatomic, copy) NSString * messageID; diff --git a/src/objc/imap/MCOIMAPFolder.h b/src/objc/imap/MCOIMAPFolder.h index bf643b54..8688ef5b 100644 --- a/src/objc/imap/MCOIMAPFolder.h +++ b/src/objc/imap/MCOIMAPFolder.h @@ -15,7 +15,7 @@ #import <Foundation/Foundation.h> #import <MailCore/MCOConstants.h> -@interface MCOIMAPFolder : NSObject <NSCoding, NSCopying> +@interface MCOIMAPFolder : NSObject <NSCopying> /** The folder's path, like for example INBOX.Archive */ @property (nonatomic, copy) NSString * path; diff --git a/src/objc/imap/MCOIMAPFolder.mm b/src/objc/imap/MCOIMAPFolder.mm index 6282a6cb..66e36beb 100644 --- a/src/objc/imap/MCOIMAPFolder.mm +++ b/src/objc/imap/MCOIMAPFolder.mm @@ -56,24 +56,6 @@ return self; } -- (id) initWithCoder:(NSCoder *)aDecoder -{ - self = [self init]; - - [self setPath:[aDecoder decodeObjectForKey:@"path"]]; - [self setDelimiter:[aDecoder decodeIntForKey:@"delimiter"]]; - [self setFlags:(MCOIMAPFolderFlag)[aDecoder decodeIntForKey:@"flags"]]; - - return self; -} - -- (void) encodeWithCoder:(NSCoder *)aCoder -{ - [aCoder encodeObject:[self path] forKey:@"path"]; - [aCoder encodeInt:[self delimiter] forKey:@"delimiter"]; - [aCoder encodeInt:[self flags] forKey:@"flags"]; -} - - (void) dealloc { MC_SAFE_RELEASE(_nativeFolder); |