Sample code for 30+ languages & platforms
Objective-C

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat Objective-C Downloads

Objective-C
#import <CkoCrypt2.h>
#import <NSString.h>

CkoCrypt2 *crypt = [[CkoCrypt2 alloc] init];

NSString *filePath = @"c:/temp/someFile.dat";

unsigned long crc32 = [crypt CrcFile: @"crc-32" path: filePath];
NSLog(@"%d",crc32);

unsigned long crc8 = [crypt CrcFile: @"crc8" path: filePath];
NSLog(@"%d",crc8);