(Objective-C) Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls. Note: This example requires Chilkat v11.0.0 or greater.
#import <CkoMailMan.h>
#import <CkoStringArray.h>
#import <CkoStringTable.h>
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];
BOOL success = [mailman FetchUidls: st];
if (success == NO) {
NSLog(@"%@",mailman.LastErrorText);
return;
}
|