• 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
call scrollRangeToVisible in multi-threads cause application dead lock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

call scrollRangeToVisible in multi-threads cause application dead lock


  • Subject: call scrollRangeToVisible in multi-threads cause application dead lock
  • From: 王 庆 <email@hidden>
  • Date: Wed, 7 Mar 2007 22:47:43 +0800

Does anyone know how to call scrollRangeToVisible in multiple threads? My call has been protected by critical section.
Following is my call function


-(void)appendMessage
{
   ....
   EnterCriticalSection()
   [textView scrollRangeToVisible:NSMakeRange(length,0)];
   LeaveCriticalSection()
}

But this function will get into dead lock when it is called in multiple threads.

Thanks
Qing


_______________________________________________

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


  • Follow-Ups:
    • Re: call scrollRangeToVisible in multi-threads cause application dead lock
      • From: Nick Zitzmann <email@hidden>
    • Re: call scrollRangeToVisible in multi-threads cause application dead lock
      • From: Stefan Werner <email@hidden>
  • Prev by Date: Multi-threaded help
  • Next by Date: Re: Multi-threaded help
  • Previous by thread: Re: Multi-threaded help
  • Next by thread: Re: call scrollRangeToVisible in multi-threads cause application dead lock
  • Index(es):
    • Date
    • Thread