Sample code for 30+ languages & platforms
Objective-C

Transition from Zip.FirstMatchingEntry to Zip.EntryMatching

Provides instructions for replacing deprecated FirstMatchingEntry method calls with EntryMatching.

Chilkat Objective-C Downloads

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

BOOL success = NO;

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

//  ...
//  ...
NSString *pattern = @"*.txt";

//  ------------------------------------------------------------------------
//  The FirstMatchingEntry method is deprecated:

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

//  ...
//  ...

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

CkoZipEntry *ze = [[CkoZipEntry alloc] init];
success = [zip EntryMatching: pattern entry: ze];
if (success == NO) {
    NSLog(@"%@",zip.LastErrorText);
    return;
}