Re: Threads & NSTextView
Re: Threads & NSTextView
- Subject: Re: Threads & NSTextView
- From: glenn andreas <email@hidden>
- Date: Sat, 23 Jul 2005 11:18:12 -0500
On Jul 23, 2005, at 10:16 AM, Laurent Michel wrote:
So, my question...
How does one /properly/ locks an NSTextView to update its content
from a separate thread ? Should I lock the parent view ? How should
I lock ? which API ?
Short answer, you don't.
Instead, use performSelectorOnMainThread:withObject:waitUntilDone:
You really shouldn't do any GUI work from anywhere other than the
main thread.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden