Re: NSTextStorage: Deadlock
Re: NSTextStorage: Deadlock
- Subject: Re: NSTextStorage: Deadlock
- From: Glen Low <email@hidden>
- Date: Thu, 4 Mar 2004 06:56:33 +0800
I have an application with two threads, a main (GUI input) thread and a
worker thread which does some processing and occasionally updates
values in one of the application's NSTextViews. However, the app
frequently hangs if the text which is about to be replaced is currently
selected.
Quick solution: put the stuff inside while (1) in its own method, then
call performSelectorOnMainThread from the worker thread.
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.