Objective-C
Objective-C
Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr
Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.Chilkat Objective-C Downloads
#import <CkoZipEntry.h>
#import <CkoDateTime.h>
CkoZipEntry *entry = [[CkoZipEntry alloc] init];
// ...
// ...
// ------------------------------------------------------------------------
// The GetDt method is deprecated:
CkoDateTime *dtObj = [entry GetDt];
if (entry.LastMethodSuccess == NO) {
NSLog(@"%@",entry.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FileDateTimeStr.
CkoDateTime *dt = [[CkoDateTime alloc] init];
[dt SetFromRfc822: entry.FileDateTimeStr];