Hi,
in my application I have a thread that receives data from a tcp connection. It manages some Outlets like UITextView updating the text. The problem is when the thread modifies the text of a UITextView object, doesn't update the screen. This because the thread doesn't return to the Application Run Loop.
A pseudo code
while(running){
NSString *line = [self receive];
//console is UITextView
console.text = line;
}
The problem is that "console" object doesn't update
What can i do ? The "setNeedDisplay" doesn't work too.
Thanks a lot.
Alvise
in my application I have a thread that receives data from a tcp connection. It manages some Outlets like UITextView updating the text. The problem is when the thread modifies the text of a UITextView object, doesn't update the screen. This because the thread doesn't return to the Application Run Loop.
A pseudo code
while(running){
NSString *line = [self receive];
//console is UITextView
console.text = line;
}
The problem is that "console" object doesn't update
What can i do ? The "setNeedDisplay" doesn't work too.
Thanks a lot.
Alvise