login about faq


Is there any way to prevent the UI from locking up when establishing a connection, changing directories, or creating directories? I have checked your docs but I was unable to find any relevant information regarding background threading for these methods. I would like to display an activity indicator while the client connects, but it appears the methods above are locking up the main thread and preventing the UI from updating.

asked Dec 12 '12 at 14:40

ngoan's gravatar image


If your program has one thread of execution, then the UI won't update while your application code is running. A thread is a path of execution -- the CPU is executing one instruction after the other. If the CPU is in the midst of executing the instructions of your application code (or the instructions within a library called by your application code), then it's not running the instructions for updating the UI. Control must return back from the UI event handler (such as a button press event) for the UI to update.

There are two options available:

1) Create a background thread to run the task. This could be used for any long-running task. It is not Chilkat specific. Anything can be put in a background thread.

2) Use event callbacks. See http://www.chilkatforum.com/questions/292/event-callbacks-in-ios-objective-c


answered Dec 13 '12 at 09:31

chilkat's gravatar image

chilkat ♦♦

I was able to get the progress working smoothly for uploads, but what callback do I use to get notified when an FTP session is connected? The only thing I could find was ConnectComplete in CkoSocketProgress.h.

The setEventCallbackObject requires CkoFtp2Progress, which does not match the base class for CkoSocketProgress.


answered Dec 13 '12 at 21:06

ngoan'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: Dec 12 '12 at 14:40

Seen: 1,436 times

Last updated: Dec 17 '12 at 15:50

powered by OSQA