login about faq

Hello everybody,

we are using the CkoTar in our iOS app. It works great. Now we want to implement the CkoTarProgress to be able to show progress. Documentation: The application should define a class that derives from CkoTarProgress and should implement member functions that override one or more virtual functions within the CkoTarProgress class.

So we implemented:

- (void)ProgressInfo: (NSString *)name
           value: (NSString *)value
- (void)NextTarFile: (NSString *)fileName
       fileSize: (NSNumber *)fileSize
   bIsDirectory: (BOOL)bIsDirectory
           skip: (BOOL *)skip
 NSLog(@"UNTARCHILKATPROGRESS NEXTTARFILE: %@ FILESIZE: %@ BISDIRECTORY: %c SKIP: %s", fileName, fileSize, bIsDirectory, skip);

Problem now is, that only "NextTarFile" is called, but "ProgressInfo" is never called. Next problem is: How do I get the number of files included in the tar file? How can I display a progress when not knowing, how many files are included. I only get the possibility to react on the next tar file without knowing, how many files are included...

Does anybody know, how to do a progress bar with CkoTarProgress?

Thanks for your help!

Greetings, Klaus.

asked Jun 19 '13 at 05:29

disy's gravatar image


In future versions of Chilkat, event callbacks will be standardized so that each new component does not have it's own special callbacks. For example, the NextTarFile callback could've just as well been a ProgressInfo callback with name = "NextTarFile" and the value equal to the path.

At the moment, there are no ProgressInfo callbacks for the Tar class. It's possible that things may be added in the future on an as-needed basis.

The following three event callbacks will be standard across most classes:

PercentDone(pctDone, abortFlag)

PercentDone is only called in places where it makes sense, such as for a file upload, downloading email, writing a zip, etc.


answered Jun 20 '13 at 09:57

chilkat's gravatar image

chilkat ♦♦

Please check to see if this new build resolves the problem:



answered Jun 19 '13 at 15:29

chilkat's gravatar image

chilkat ♦♦

Hi Chilkat!

Thanks for the quick response. In the new build, the behavior is the same as in the official build Chilkat-9.4.0-IOS-6.0.zip: The Method "ProgressInfo" is never called. The "NextTarFile" is correctly called, but this was called correctly in the official build too.

What should the method "ProgressInfo" be? Should it be called like "NextTarFile"? Then something is wrong, 'cause "ProgressInfo" is never called... Or has any flag or parameter to be set that "ProgressInfo" would be called?

Workaround I've implemented yesterday: Before calling the "Untar"-Method I save the size of the whole tar file. In each call of "NextTarFile" a second variable summarizes the "fileSize" of "NextTarFile". Then I calculate the percentage done and can give it back.

Greetings disy.


answered Jun 20 '13 at 02:53

disy's gravatar image


edited Jun 20 '13 at 03:08

Hi Chilkat,

thank you for this detailed answer. I look forward to future versions and thank you for your quick replies! Keep it up!

Greetings, disy.


answered Jun 20 '13 at 10:22

disy's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 19 '13 at 05:29

Seen: 3,097 times

Last updated: Jun 20 '13 at 10:22

powered by OSQA