Re: call scrollRangeToVisible in multi-threads cause application dead lock
Re: call scrollRangeToVisible in multi-threads cause application dead lock
- Subject: Re: call scrollRangeToVisible in multi-threads cause application dead lock
- From: Stefan Werner <email@hidden>
- Date: Wed, 7 Mar 2007 17:12:25 +0100
On Mar 7, 2007, at 3:47 PM, 王 庆 wrote:
Does anyone know how to call scrollRangeToVisible in multiple
threads? My call has been protected by critical section.
Following is my call function
The quick answer is: never call any UI code from any thread that is
not the main thread. Neither Carbon nor Cocoa like that.
Stefan_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden