• 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
NSTextView replaceCharactersInRange performance and thread safety
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTextView replaceCharactersInRange performance and thread safety
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
  • Next by Date: Re: KVO / NSArrayController question
  • Previous by thread: Re: NaN (Not a Number) Error using Bindings
  • Next by thread: Re: NSTextView replaceCharactersInRange performance and thread safety
  • Index(es):
    • Date
    • Thread