Re: [newbie] Using progress indicators in different threads
Re: [newbie] Using progress indicators in different threads
- Subject: Re: [newbie] Using progress indicators in different threads
- From: Charles Srstka <email@hidden>
- Date: Sun, 1 Sep 2002 16:09:18 -0500
Traditionally, you set up a connection with Distributed Objects between
the threads so that the worker threads can tell the main thread to do
all AppKit-related stuff that they need to do.
However, a few posts earlier on this mailing list, Andreas Monitzer has
let me know about this API:
performSelectorOnMainThread:withObject:waitUntilDone:
that might allow you to avoid this requirement.
Charles
On Sunday, September 1, 2002, at 02:56 PM, Massimiliano Bigatti wrote:
Hello
I'm building an application that does a copy of several. I'd like
to use a progress indicator to show completion status (yes, similar to
the Finder). I use file manager for the copy of single file started
from
a different thread. In this thread I update the progress indicator. At
the end of the copy of the last file, I clear the progress indicator
and
the thread ends.
The problem is that the progress indicator sometimes does not clear. I
use also a text field to show the current file but I get always
different file names at the end of the copy operation.
It seems that the latest messages sometimes get lost and does not
arrive
to progress indicator and text field.
Would someone be so polite to help me?
Regards,
Massimiliano Bigatti
http://www.bigatti.it
SUN Certified Enterprise Architect for Java Platform 2 Enterprise
Edition Technology
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.