Re: Threads and GUI
Re: Threads and GUI
- Subject: Re: Threads and GUI
- From: kubernan <email@hidden>
- Date: Thu, 3 Jan 2002 23:26:26 +0100
It's clear i didn't read the archive. I'll do. I hope i'll find a
solution for me.
I can't believe there is no way to establish a connection between a
thread and the GUI : my first solution where i use
a NSTimer for testing a global variable outside the thread code works,
but as i said it's very slow. Of course, the method called by
the timer should be safe.
Le jeudi 3 janvier 2002, ` 10:37 PM, Finlay Dobbie a icrit :
On Thursday, January 3, 2002, at 08:42 pm, kubernan wrote:
Can you explain to me why i have these problems ? Do you have any
solution for me ?
A lot of Cocoa is not thread safe. You should manipulate the GUI and do
drawing and so on only from the main thread. Search the archives for
information on this, it has been discussed lots of times before.
-- Finlay