• 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: Nick Zitzmann <email@hidden>
  • Date: Tue, 3 Jun 2008 19:32:59 -0600


On Jun 3, 2008, at 7:25 PM, Steven Moore wrote:

It looks like most of the calls are coming from [NSArray indexOfObjectIdenticalTo:], half of which are from [NSSubTextStorage release] and [NSTextStorage removeLayoutManager:]. I'm not exactly sure why, as I didn't think I was directly touching the layout manager.. is it being re-created every time I update the string or something?


I don't know, and the only people who probably would are the AppKit engineers. But I do know that NSLayoutManager is probably the most expensive built-in object to release. Have you tried turning on GC? At least that will move object finalization into a background thread.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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: Ross Carter <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>)

  • Prev by Date: Re: NSTextView causes lockups when appending too quickly and/or scrolling
  • Next by Date: Re: Key-Value pairs
  • 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