Re: NSTextView causes lockups when appending too quickly and/or scrolling
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