(Objective-C) Transition from Email.GetLinkedDomains to Email.LinkedDomains
Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains. Note: This example requires Chilkat v11.0.0 or greater.
#import <CkoEmail.h>
#import <CkoStringArray.h>
#import <CkoStringTable.h>
CkoEmail *email = [[CkoEmail alloc] init];
// ...
// ...
// ------------------------------------------------------------------------
// The GetLinkedDomains method is deprecated:
CkoStringArray *sa = [email GetLinkedDomains];
if (email.LastMethodSuccess == NO) {
NSLog(@"%@",email.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using LinkedDomains.
// Your application creates a new, empty StringTable object which is passed
// in the last argument and filled upon success.
CkoStringTable *st = [[CkoStringTable alloc] init];
BOOL success = [email LinkedDomains: st];
if (success == NO) {
NSLog(@"%@",email.LastErrorText);
return;
}
|