I have an error File::tell() shown in XCode, using Unrar4iOS Framework, when I am calling the method:
-(NSArray)unrarListFiles;
the compiler shows me the a bunch of errors, where the last from stack is ftell, if someone knows, the origin if where probabily i am wrong, plese reply... the full procedure what i want to do is to extrat the int number of files archived, from code below:
int nuberOfPages = 0;
NSLog(@"Filepath: %@", filePath);
Unrar4iOS *_unrar = [[Unrar4iOS alloc] init];
BOOL ok = [_unrar unrarOpenFile:filePath];
if (ok) {
NSArray *files = [_unrar unrarListFiles];
for (NSString *filename in files) {
NSLog(@"File: %@", filename);
}
nuberOfPages = files.count;
[unrar unrarCloseFile];
} else {
[unrar unrarCloseFile];
}
[_unrar release];
return nuberOfPages;
this is because that. in source code.
the function above. they did not do anything.
this function do real open and real close;
}