• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: call scrollRangeToVisible in multi-threads cause application dead lock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call scrollRangeToVisible in multi-threads cause application dead lock


  • Subject: Re: call scrollRangeToVisible in multi-threads cause application dead lock
  • From: Jim Correia <email@hidden>
  • Date: Wed, 7 Mar 2007 11:29:40 -0500

On Mar 7, 2007, at 11:12 AM, Stefan Werner wrote:

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.

And to be pedantic, like most quick answers, this is an oversimplification and incomplete. (Non-UI code is not necessarily thread-safe, there are parts of AppKit which are thread-safe.)


<http://developer.apple.com/documentation/Cocoa/Conceptual/ Multithreading/articles/CocoaSafety.html>

If the documentation is insufficient, file bugs and try to seek clarification here.


Jim_______________________________________________

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


References: 
 >call scrollRangeToVisible in multi-threads cause application dead lock (From: 王 庆 <email@hidden>)
 >Re: call scrollRangeToVisible in multi-threads cause application dead lock (From: Stefan Werner <email@hidden>)

  • Prev by Date: Re: call scrollRangeToVisible in multi-threads cause application dead lock
  • Next by Date: Re: call scrollRangeToVisible in multi-threads cause application dead lock
  • Previous by thread: Re: call scrollRangeToVisible in multi-threads cause application dead lock
  • Next by thread: Re: call scrollRangeToVisible in multi-threads cause application dead lock
  • Index(es):
    • Date
    • Thread