• 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: NSTextView causes lockups when appending too quickly and/or scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView causes lockups when appending too quickly and/or scrolling


  • Subject: Re: NSTextView causes lockups when appending too quickly and/or scrolling
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 4 Jun 2008 16:04:37 -0700


On Jun 4, 2008, at 3:54 PM, Steven Moore wrote:

With both of these changes in place, and a bit of optimization on my part (apparently, [[myTextView textStorage] paragraphs] comes with a lot of overhead.. not surprising, when I think about it), my app is in much better shape. I think the garbage collection helped the most.. pretty nifty stuff!

Anything in NSTextStorageScripting.h (like -paragraphs) is really intended for scripting only; stay away from it for other purposes. You should file a bug against the documentation to include a warning to that effect. If you want to go through text by paragraphs, you should use [[textStorage string] paragraphRangeForRange:] or related methods.


Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: NSTextView causes lockups when appending too quickly and/or scrolling
      • From: Steven Moore <email@hidden>
References: 
 >NSTextView causes lockups when appending too quickly and/or scrolling (From: Steven Moore <email@hidden>)
 >Re: NSTextView causes lockups when appending too quickly and/or scrolling (From: Nick Zitzmann <email@hidden>)
 >Re: NSTextView causes lockups when appending too quickly and/or scrolling (From: Steven Moore <email@hidden>)
 >Re: NSTextView causes lockups when appending too quickly and/or scrolling (From: Nick Zitzmann <email@hidden>)
 >Re: NSTextView causes lockups when appending too quickly and/or scrolling (From: Ross Carter <email@hidden>)
 >Re: NSTextView causes lockups when appending too quickly and/or scrolling (From: Steven Moore <email@hidden>)

  • Prev by Date: Re: What's the NSMailDelivery replacement for Leopard and Beyond?
  • Next by Date: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)
  • Previous by thread: Re: NSTextView causes lockups when appending too quickly and/or scrolling
  • Next by thread: Re: NSTextView causes lockups when appending too quickly and/or scrolling
  • Index(es):
    • Date
    • Thread