Sample code for 30+ languages & platforms
Objective-C

Transition from MailMan.GetUidls to MailMan.FetchUidls

Provides instructions for replacing deprecated GetUidls method calls with FetchUidls.

Chilkat Objective-C Downloads

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

BOOL success = NO;

CkoMailMan *mailman = [[CkoMailMan alloc] init];

// ...
// ...

// ------------------------------------------------------------------------
// The GetUidls method is deprecated:

CkoStringArray *sa = [mailman GetUidls];
if (mailman.LastMethodSuccess == NO) {
    NSLog(@"%@",mailman.LastErrorText);
    return;
}

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using FetchUidls.
// 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 = [mailman FetchUidls: st];
if (success == NO) {
    NSLog(@"%@",mailman.LastErrorText);
    return;
}