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: Thu, 5 Jun 2008 14:43:25 -0700
On Jun 5, 2008, at 2:40 PM, Steven Moore wrote:
Heh, whoops. Maybe I should read the documentation better. The
warning is already there, I just missed it:
"NSTextStorage also defines a set of methods ... useful for getting
and setting scriptable properties of NSTextStorage objects... In
particular, using thecharacters, words or paragraphs methods or
their corresponding setter methods is an inefficient way to
manipulate the text storage, since these methods create and return
many objects."
I think the warning is important enough that it should be noted with
the documentation for each of the individual methods as well, so I'd
file a bug about that. The documentation doesn't really preserve the
way the headers separate these methods into the
NSTextStorageScripting.h header file, so something extra is needed.
-Doug
_______________________________________________
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