Sample code for 30+ languages & platforms
Objective-C

Transition from Email.GetLinkedDomains to Email.LinkedDomains

Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains.

Chilkat Objective-C Downloads

Objective-C
#import <CkoEmail.h>
#import <CkoStringArray.h>
#import <CkoStringTable.h>

BOOL success = NO;

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];
success = [email LinkedDomains: st];
if (success == NO) {
    NSLog(@"%@",email.LastErrorText);
    return;
}