Objective-C
Objective-C
Transition from Cert.GetValidToDt to Cert.ValidToStr
Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.Chilkat Objective-C Downloads
#import <CkoCert.h>
#import <CkoDateTime.h>
CkoCert *cert = [[CkoCert alloc] init];
// ------------------------------------------------------------------------
// The GetValidToDt method is deprecated:
CkoDateTime *ckdt1 = [cert GetValidToDt];
if (cert.LastMethodSuccess == NO) {
NSLog(@"%@",cert.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using the ValidToStr property
CkoDateTime *ckdt2 = [[CkoDateTime alloc] init];
[ckdt2 SetFromRfc822: cert.ValidToStr];