Sample code for 30+ languages & platforms
Objective-C

Transition from MailMan.LastJsonData to MailMan.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Objective-C Downloads

Objective-C
#import <CkoMailMan.h>
#import <CkoJsonObject.h>

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

// ...
// ...

// ------------------------------------------------------------------------
// The LastJsonData method is deprecated:

CkoJsonObject *jsonObj = [mailman LastJsonData];
if (mailman.LastMethodSuccess == NO) {
    NSLog(@"%@",mailman.LastErrorText);
    return;
}

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using GetLastJsonData.
// Your application creates a new, empty JsonObject object which is passed 
// in the last argument.

CkoJsonObject *jsonOut = [[CkoJsonObject alloc] init];
[mailman GetLastJsonData: jsonOut];