Objective-C
Objective-C
Transition from MailMan.GetFullEmail to MailMan.FetchFull
Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.Chilkat Objective-C Downloads
#import <CkoMailMan.h>
#import <CkoEmail.h>
BOOL success = NO;
CkoMailMan *mailman = [[CkoMailMan alloc] init];
// ...
// ...
// Assume the email header was previously downloaded using some other Chilkat method...
CkoEmail *emailHeader = [[CkoEmail alloc] init];
// ------------------------------------------------------------------------
// The GetFullEmail method is deprecated:
CkoEmail *fullEmailObj = [mailman GetFullEmail: emailHeader];
if (mailman.LastMethodSuccess == NO) {
NSLog(@"%@",mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchFull.
// Your application creates a new, empty Email object which is passed
// in the last argument and filled upon success.
CkoEmail *fullEmail = [[CkoEmail alloc] init];
success = [mailman FetchFull: emailHeader fullEmail: fullEmail];
if (success == NO) {
NSLog(@"%@",mailman.LastErrorText);
return;
}