NSTextView replaceCharactersInRange performance and thread safety
NSTextView replaceCharactersInRange performance and thread safety
- Subject: NSTextView replaceCharactersInRange performance and thread safety
- From: David Kocher <email@hidden>
- Date: Tue, 4 Jan 2005 20:51:46 +0100
Hi all,
The implementation of "replaceCharactersInRange" and
"scrollRangeToVisible" in NSTextView seems to be *very* slow making it
impossible for me to use a NSTextView for logging. The problem has also
been discussed at [
http://www.cocoadev.com/index.pl?FastWritesToNSTextView ] with no
solution provided it seems.
I also had infrequent crashes when calling the above methods from a
different thread than the main thread; it seems it isn't thread safe.
There comes my question; is there a best practice how to write
consecutively to a NSTextView?
My current code can be found at [
http://cvs.cyberduck.ch/cyberduck-cocoa/source/ch/cyberduck/ui/cocoa/
CDTranscriptImpl.java?rev=HEAD&content-type=text/vnd.viewcvs-markup ]
Regards,
-dk
---
Subscribe to the Cyberduck-news mailing list to get a notification when
a new version is released.
> http://lists.cyberduck.ch/mailman/listinfo/cyberduck-news
_______________________________________________
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