forked from MailCore/MailCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Migrating to 1.0
mronge edited this page Nov 25, 2012
·
1 revision
The latest version of MailCore is no longer backwards compatible with earlier versions. I tried to keep backwards compatibility, but it became too complex, sorry :(
The biggest change is that exceptions are no longer used. Instead each method either returns a BOOL or an object that can be checked for success. If an error occurs each object has a - (NSError *)lastError method that can be consulted.
Here are a list of major changes:
- The method
- (int)fetchBodyhas been renamed to- (BOOL)fetchBodyStructure - The methods
messageObjectsFromIndex:toIndex:andmessageListWithFetchAttributes:have both been removed. They've been replaced by the new and improvedmessagesFromSequenceNumber:to:withFetchAttributes:andmessagesFromUID:to:withFetchAttributes:. Please see the header file CTCoreFolder.m for details.
- NSException is no longer used, instead NSError is used.
- A CTCoreMessage's to, from, sender, bcc, cc, and subject values are nil when they have not been downloaded or message doesn't have them
- Message UIDs are now NSUIntegers instead of NSStrings
-
- (BOOL)isUIDValid:(NSString *)uidhas been removed. Instead check your uid validity value manually