Sample code for 30+ languages & platforms
Objective-C

Replace Deprecated GetExpirationDt

Shows how to replace the deprecated GetExpirationDt method.

Chilkat Objective-C Downloads

Objective-C
#import <CkoCache.h>
#import <NSString.h>
#import <CkoDateTime.h>

CkoCache *cache = [[CkoCache alloc] init];

//  ....
//  ....

NSString *cache_item_key = @"xyz";

//  Instead of this:
CkoDateTime *dt1 = [cache GetExpirationDt: cache_item_key];

//  Do this:
CkoDateTime *dt2 = [[CkoDateTime alloc] init];
[dt2 SetFromRfc822: [cache GetExpirationStr: cache_item_key]];