Re: Callbacks, GUI updates and threading
Re: Callbacks, GUI updates and threading
- Subject: Re: Callbacks, GUI updates and threading
- From: Hamish Allan <email@hidden>
- Date: Mon, 10 May 2004 03:42:27 +0100
On May 10, 2004, at 2:00, Andreas Mayer wrote:
I'd like to work the single-threaded model if I can
Why? You listed some of the problems you are facing with the loop
model. Using a separate thread seems much easier to me.
Why? Because I don't know anything about inter-thread communication.
Brent has very kindly explained to me how I might achieve what I want
to do using a single thread. All you have told me is that there exists
a method called performSelectorOnMainThread:... that I should somehow
use (see below).
Anyone used this: http://iharder.sourceforge.net/macosx/threadworker/
?
I think the threadworker class was started before
performSelectorOnMainThread:... became available. I'd rather use the
latter if possible.
As far as I can ascertain, I should be calling that method from my
worker thread, which somehow I need to create and set running... and
the ThreadWorker class seemed like as good a way as any to do that!
Regards,
Hamish
_______________________________________________
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.