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: Steven Moore <email@hidden>
- Date: Wed, 4 Jun 2008 15:54:58 -0700
Have you tried turning on GC? At least that will move object
finalization into a background thread.
You might want to look at NSLayoutManager -
setAllowsNonContiguousLayout:
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!
Thanks,
Steven
_______________________________________________
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