Sample code for 30+ languages & platforms
Objective-C

Transition from Zip.FirstEntry to Zip.EntryAt

Provides instructions for replacing deprecated FirstEntry method calls with EntryAt.

Chilkat Objective-C Downloads

Objective-C
#import <CkoZip.h>
#import <CkoZipEntry.h>

BOOL success = NO;

CkoZip *zip = [[CkoZip alloc] init];

//  ...
//  ...

//  ------------------------------------------------------------------------
//  The FirstEntry method is deprecated:

CkoZipEntry *entryObj = [zip FirstEntry];
if (zip.LastMethodSuccess == NO) {
    NSLog(@"%@",zip.LastErrorText);
    return;
}

//  ...
//  ...

//  ------------------------------------------------------------------------
//  Do the equivalent using EntryAt.

//  Your application creates a new, empty ZipEntry object which is passed 
//  in the last argument and filled upon success.

//  The 1st entry is at index 0.
CkoZipEntry *ze = [[CkoZipEntry alloc] init];
success = [zip EntryAt: [NSNumber numberWithInt: 0] entry: ze];
if (success == NO) {
    NSLog(@"%@",zip.LastErrorText);
    return;
}